-
-
Couldn't load subscription status.
- Fork 967
default fields dates to datetime precision #15165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default fields dates to datetime precision #15165
Conversation
|
So, if I understand this correctly, before this change, the Also, should all these types be formatted with timezone? |
@matrei this ticket will be for coming up with a final solution I described the current behavior there: grails-core/grails-fields/grails-app/taglib/grails/plugin/formfields/FormFieldsTagLib.groovy Lines 949 to 973 in c27742f
currently grails-core/grails-gsp/plugin/src/main/groovy/org/grails/plugins/web/taglib/FormatTagLib.groovy Line 187 in c27742f
all this ticket does is set the type to datetime which results in the following behavior; grails-core/grails-gsp/plugin/src/main/groovy/org/grails/plugins/web/taglib/FormatTagLib.groovy Lines 193 to 201 in c27742f
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tried out this change and it seems to be a real improvement to the current rendering behavior.
Thanks @codeconsole!
Alternative solution for
<f:allrendering of date objects with time precision.NOTE: This proposal puts rendering IN SYNC with create/edit input tag rendering. Currently the fields plugin ONLY supports MINUTE precision for input rendering using the date picker.
The documentation for datePicker is incorrect. "and second of the day." Seconds have never been supported, but are set to be added in with #15118
Show DateTime - Proposal (contingent on Locale)
Show DateTime - Current Behavior