Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define DateFormat in API #21

Open
chamerling opened this issue Jun 1, 2011 · 0 comments
Open

Define DateFormat in API #21

chamerling opened this issue Jun 1, 2011 · 0 comments

Comments

@chamerling
Copy link
Member

Setting DateFormat in RenderJsonExclusion like

new GsonBuilder().setExclusionStrategies(exclusionStrategy).serializeNulls().setDateFormat(DATE_FORMAT).setPrettyPrinting().create().toJson(o);

does nothing. Looks like it is a Play 1.2/1.2.1 issue (and Gson 1.6) and that it has been fixed in Play 1.2.2 to be released. For now, the date remains localized but the code is already here...

Details here http://play.lighthouseapp.com/projects/57987/tickets/780-gson-16-ignores-setdateformat-please-update-to-171

eric-taix added a commit that referenced this issue Jun 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant