diff --git a/util/fncs/args.go b/util/fncs/args.go index ac7c8241..74491d20 100644 --- a/util/fncs/args.go +++ b/util/fncs/args.go @@ -132,6 +132,10 @@ func ensureTime(val interface{}) (out time.Time, ok bool) { switch val := val.(type) { case time.Time: return val, true + case string: + if val, err := time.Parse(time.RFC3339Nano, val); err == nil { + return val, true + } } return defaultTime, false }