YAML.dump loses the timezone when dumping Time instances
--------------------------------------------------------
Key: JRUBY-3412
URL: http://jira.codehaus.org/browse/JRUBY-3412
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.6
Environment: JRuby 1.1.6 on Mac OS 10.5.6 using Java 1.6.0_07
Reporter: David Agnew
Assignee: Thomas E Enebo
YAML.dump on JRuby loses the timezone when it dumps a Time instance, resulting
in a shift to UTC time when YAML.load restores the string.
Example:
YAML.dump Time.now returns a string like:
"--- 2009-02-17 03:40:26.574754 +00:00\n"
Under MRI, the output for the same time includes the local zone offset:
"--- 2009-02-16 22::40:26.574754 -05:00\n"
YAML.load on either interpreter works correctly. It returns a UTC time for the
first string and a local time for the second.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email