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

Incorrect dump of Date when in a nested structure #50

Closed
nmk opened this issue Jan 11, 2016 · 0 comments
Closed

Incorrect dump of Date when in a nested structure #50

nmk opened this issue Jan 11, 2016 · 0 comments

Comments

@nmk
Copy link

nmk commented Jan 11, 2016

 $ jirb
 :001 > require 'date'
 => true
 :002 > require 'jrjackson'
 => true
 :003 > JrJackson::Json.dump(Date.today)
 => "2016-01-11"
 :004 > JrJackson::Json.dump([Date.today])
 => "[\"2016-01-11 00:00:00 +0100\"]"

The above session uses JrJackson 0.3.8 and JRuby 1.7.21. I am aware of #29 and https://github.com/guyboertje/jrjackson/wiki/Ruby-Time-serialisation however this concerns only dates. As far as I know dates should be TZ unaware, so the generation of a date should always result in a string of the "YYYY-MM-DD" format.

guyboertje added a commit that referenced this issue Apr 11, 2016
post jar dependencies

final update for 0.3.9

add support for date

Fixes #47
Fixes #50
Fixes #51

Punctuation.

Fixes #47
Fixes #50
Fixes #51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant