Fix time layout in FormValidator.CheckValidDate

This commit is contained in:
jordi fita mas 2023-02-13 10:34:55 +01:00
parent 3891a01fd5
commit e94e3f6ebc
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ func (v *FormValidator) CheckValidURL(field *InputField, message string) bool {
}
func (v *FormValidator) CheckValidDate(field *InputField, message string) bool {
_, err := time.Parse("2006-02-01", field.Val)
_, err := time.Parse("2006-01-02", field.Val)
return v.checkInput(field, err == nil, message)
}