We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c627211 commit e62df71Copy full SHA for e62df71
z/flags.go
@@ -184,7 +184,7 @@ func (sf *SuperFlag) GetDuration(opt string) time.Duration {
184
}
185
if strings.Contains(val, "d") {
186
val = strings.Replace(val, "d", "", 1)
187
- days, err := strconv.ParseUint(val, 0, 64)
+ days, err := strconv.ParseInt(val, 0, 64)
188
if err != nil {
189
return time.Duration(0)
190
0 commit comments