From 35840778bfa3eb380fb75e9e95ecb46c018e45a5 Mon Sep 17 00:00:00 2001 From: Alexander Lokhman Date: Tue, 14 Aug 2018 15:04:59 +0100 Subject: [PATCH] Set default time format in form binding --- binding/form_mapping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/form_mapping.go b/binding/form_mapping.go index 3f6b9bfa1a..a714291fae 100644 --- a/binding/form_mapping.go +++ b/binding/form_mapping.go @@ -178,7 +178,7 @@ func setFloatField(val string, bitSize int, field reflect.Value) error { func setTimeField(val string, structField reflect.StructField, value reflect.Value) error { timeFormat := structField.Tag.Get("time_format") if timeFormat == "" { - return errors.New("Blank time format") + timeFormat = time.RFC3339 } if val == "" {