Wrong binding of hours for Dates

Bug #491081 reported by Tristan Wehrmaker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Status tracked in 1.0
1.0
Fix Released
Undecided
Nicolas Leroux
1.1
Fix Committed
Undecided
Unassigned

Bug Description

If you have "2009-01-01T12:00:00" as value for a Date parameter, it will be converted into "Thu Jan 01 00:00:00 CET 2009".

So the 12 will be replaced by 00. That is obviously wrong for 24-hour formats.

Here is some code to test this:

public class Test extends Controller {

 public static void test(Date date) {
  System.out.println(date);
 }

}

and call it with
http://localhost:9000/test/test?date=2009-01-01T12:00:00

Revision history for this message
Nicolas Leroux (nicolas-lunatech) wrote :

This is actually fixed in the 1.1 branch I think. Still it should be fixed in the 1.0 branch as well.

Changed in play:
assignee: nobody → Nicolas (nicolas-lunatech)
Changed in play:
status: New → 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.