You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Build a gson with setDateFormat
Date date = new Date();
Gson gson = new GsonBuilder().setDateFormat("MM/dd/yyyy").create();
System.out.println(gson.toJson(date));
What is the expected output? What do you see instead?
Expected is "08/27/2010"
Date results in standard format: "Aug 27, 2010 10:21:32 AM"
What version of the product are you using? On what operating system?
1.5
Please provide any additional information below.
It works ok in 1.4 but when I change to 1.5 it ignores the setDateFormat()
method
Original issue reported on code.google.com by tradefie...@gmail.com on 27 Aug 2010 at 2:38
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
tradefie...@gmail.com
on 27 Aug 2010 at 2:38The text was updated successfully, but these errors were encountered: