summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-playground/validator/v10/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-playground/validator/v10/util.go')
-rw-r--r--vendor/github.com/go-playground/validator/v10/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/go-playground/validator/v10/util.go b/vendor/github.com/go-playground/validator/v10/util.go
index 56420f430..36da85514 100644
--- a/vendor/github.com/go-playground/validator/v10/util.go
+++ b/vendor/github.com/go-playground/validator/v10/util.go
@@ -82,7 +82,7 @@ BEGIN:
fld := namespace
var ns string
- if typ != timeType {
+ if !typ.ConvertibleTo(timeType) {
idx := strings.Index(namespace, namespaceSeparator)