Hubert Chang
2009-04-11 05:11:09 UTC
Now grails is locale aware and will change the dateformat according to the
user's locale. It's good.
I suggest there is an option to support a default date format for the whole
application. Then I can change the locale setting with the client
javascript.
I noticed that grails-ui and the calendar plugins all do some hacks to the
dateformat.
1, Support default.date.format=yyyy-MM-dd HH:mm:ss z in config.groovy
If we have this option,grails-ui and calendar plugins will have easy
method to handle the datetime. For example, they can get the option from the
config, and set up a hidden input field to format the datetime string to the
hidden input value.
Or,
2, support new Date(1239425656319) like JSON parser. It will give more
convenience.
if grails can check the input value with a unix-timestamp and parse it
like JSON, new Date(1239425656319), when it found a value is not a correct
format date string, it will eval it as new Date(1239425656319)
automatically, it will give some convenience to the developers too.
Thanks.
user's locale. It's good.
I suggest there is an option to support a default date format for the whole
application. Then I can change the locale setting with the client
javascript.
I noticed that grails-ui and the calendar plugins all do some hacks to the
dateformat.
1, Support default.date.format=yyyy-MM-dd HH:mm:ss z in config.groovy
If we have this option,grails-ui and calendar plugins will have easy
method to handle the datetime. For example, they can get the option from the
config, and set up a hidden input field to format the datetime string to the
hidden input value.
Or,
2, support new Date(1239425656319) like JSON parser. It will give more
convenience.
if grails can check the input value with a unix-timestamp and parse it
like JSON, new Date(1239425656319), when it found a value is not a correct
format date string, it will eval it as new Date(1239425656319)
automatically, it will give some convenience to the developers too.
Thanks.
--
View this message in context: http://www.nabble.com/Suggestion%3A-config.groovy-support-default.date.format%3Dyyyy-MM-dd-HH%3Amm%3Ass-z-or-Support-new-Date%281239425656319%29-tp22998094p22998094.html
Sent from the grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
View this message in context: http://www.nabble.com/Suggestion%3A-config.groovy-support-default.date.format%3Dyyyy-MM-dd-HH%3Amm%3Ass-z-or-Support-new-Date%281239425656319%29-tp22998094p22998094.html
Sent from the grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email