Add a standard date format for each locale

Bug #458431 reported by Nicolas Leroux
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
play framework
Fix Committed
Wishlist
Nicolas Leroux
1.0
Won't Fix
Wishlist
Nicolas Leroux
1.1
Fix Committed
Wishlist
Nicolas Leroux

Bug Description

In the template ${myDate.format()} is dependent of the locale

In case of a query, the date parameters are also dependent of the locale.
ie /documents/?fromDate=01-12-2009

We need to add a way to configure that.

Add the following properties in the application.conf file.

date.format=
data.format.fr=

Note that this date format can also be used for the following url (REST resource):

/documents/11-11-2009/ only if no date format was specified for the binding (but that is another issue).

This issue is linked to the issue #446302

More info here http://groups.google.com/group/play-framework/browse_thread/thread/cb81fb4941a66e52

Changed in play:
status: New → In Progress
description: updated
Changed in play:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.