Time marshal format differs between Ruby and JRuby
--------------------------------------------------

                 Key: JRUBY-5056
                 URL: http://jira.codehaus.org/browse/JRUBY-5056
             Project: JRuby
          Issue Type: Bug
            Reporter: Christoffer Sawicki
            Assignee: Thomas E Enebo
            Priority: Minor


I'm passing around marshaled Time instances between Ruby and JRuby and have 
observed that the marshal format differs in respect to timezone. Here's an 
example:

{code}
$ irb
irb(main):001:0> t = Time.now
=> Tue Aug 31 22:21:09 +0200 2010
irb(main):002:0> [Marshal.dump(t)].pack("m")
=> "BAh1OglUaW1lDfSfG4AKtZJU\n"

$ jruby -S irb
irb(main):001:0> Marshal.load("BAh1OglUaW1lDfSfG4AKtZJU\n".unpack("m")[0])      
      
=> Tue Aug 31 20:21:09 +0200 2010
{code}

Note the 2 hour shift.

-- 
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


Reply via email to