Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 538 by
mbrzezi...@gmail.com: Date format is not respected when
serializing map with Date as key
http://code.google.com/p/google-gson/issues/detail?id=538
What steps will reproduce the problem?
1. Crete Map<Date,Object> and populate with random data
2. Create Gson using GsonBuilder and setDateFormat("any format")
3. Serialize map to json.
What is the expected output? What do you see instead?
I expect keys to be serialized using date format, but I see that keys are
converted to strings using Date.toString() which uses generic "EEE MMM dd
HH:mm:ss z yyyy" format
What version of the product are you using? On what operating system?
2.2.4 from Maven,Ubuntu Linux
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings