Forum: JRuby Marshalling Time instances and ActiveSupport

0f36963d10e423a204db6aa255fd308f?d=identicon&s=25 Rohit Namjoshi (Guest)
on 2013-08-15 02:40
(Received via mailing list)
Hi All,

Any idea why this is happening?

Linux rohit-dev 3.2.0-49-generic #75-Ubuntu SMP Tue Jun 18 17:39:32 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux

$ irb
1.9.3p429 :001 > p t = Time.now; Marshal.load(Marshal.dump(t))
2013-08-14 19:24:12 -0500
 => 2013-08-14 19:24:12 -0500
1.9.3p429 :002 > require 'active_support/all'
 => true
1.9.3p429 :003 > p t = Time.now; Marshal.load(Marshal.dump(t))
2013-08-14 19:24:19 -0500
 => 2013-08-14 19:24:19 -0500

$ irb
jruby-1.7.4 :001 > p t = Time.now; Marshal.load(Marshal.dump(t))
2013-08-14 19:20:39 -0500
 => 2013-08-14 19:20:39 -0500
jruby-1.7.4 :002 > require 'active_support/all'
 => true
jruby-1.7.4 :003 > p t = Time.now; Marshal.load(Marshal.dump(t))
2013-08-14 19:20:53 -0500
 => 2013-08-14 *20*:20:53 -0500

The JRuby unmarshalled value has changed from 19:20:53 -0500 to 20:20:53
-0500 after ActiveSupport is loaded.

Thanks, Rohit
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.