Skip to content

Commit ffb043a

Browse files
committed
default fields dates to datetime precision
1 parent c27742f commit ffb043a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-fields/grails-app/taglib/grails/plugin/formfields/FormFieldsTagLib.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ class FormFieldsTagLib {
966966
case Instant:
967967
case ZonedDateTime:
968968
case OffsetDateTime:
969-
g.formatDate(date: model.value)
969+
g.formatDate(date: model.value, type: 'DATETIME')
970970
break
971971
default:
972972
g.fieldValue(bean: model.bean, field: model.property)

0 commit comments

Comments
 (0)