Skip to content

Less precise xmlschema format #57

Closed
cgriego opened this Issue Jan 8, 2013 · 4 comments

2 participants

@cgriego
cgriego commented Jan 8, 2013

For better compatibility with other JSON libraries, it'd be nice if Oj could be configured to use the a date format option that acted like xmlschema but always treated nsec as zero.

@ohler55
Owner
ohler55 commented Jan 9, 2013

Seems reasonable. I'll add a nano_time option or something like that in the next release.

@ohler55
Owner
ohler55 commented Jan 18, 2013

Feature added in 2.0.1 called second_precision.

@ohler55
Owner
ohler55 commented Jan 20, 2013

Closing with the assumption that there were no problems with the fix.

@ohler55 ohler55 closed this Jan 20, 2013
@cgriego
cgriego commented Jan 21, 2013

Works great, thanks @ohler55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.