Issue #6437 has been reported by spastorino (Santiago Pastorino). ---------------------------------------- Feature #6437: Marshaling Time preserve utc_offset but doesn't preserve zone https://bugs.ruby-lang.org/issues/6437 Author: spastorino (Santiago Pastorino) Status: Open Priority: Normal Assignee: Category: Target version: I was wondering why do we have this in Rails https://github.com/rails/rails/blob/master/actives.... I thought it was something particular of old Ruby versions but the same happens in trunk. $ ruby -v ruby 2.0.0dev (2012-05-02 trunk 35517) [x86_64-darwin11.3.0] $ irb irb(main):001:0> t = Time.local(2010) => 2010-01-01 00:00:00 -0200 irb(main):002:0> t.zone => "UYST" irb(main):003:0> m = Marshal.load(Marshal.dump(t)) => 2010-01-01 00:00:00 -0200 irb(main):005:0> m.zone => nil I wonder if there's a reason for that or it's a bug or something wrong.
on 2012-05-15 22:31
on 2012-05-15 22:54
Issue #6437 has been updated by spastorino (Santiago Pastorino). Actually this is a dup of #3035 ---------------------------------------- Feature #6437: Marshaling Time preserve utc_offset but doesn't preserve zone https://bugs.ruby-lang.org/issues/6437#change-26646 Author: spastorino (Santiago Pastorino) Status: Open Priority: Normal Assignee: Category: Target version: I was wondering why do we have this in Rails https://github.com/rails/rails/blob/master/actives.... I thought it was something particular of old Ruby versions but the same happens in trunk. $ ruby -v ruby 2.0.0dev (2012-05-02 trunk 35517) [x86_64-darwin11.3.0] $ irb irb(main):001:0> t = Time.local(2010) => 2010-01-01 00:00:00 -0200 irb(main):002:0> t.zone => "UYST" irb(main):003:0> m = Marshal.load(Marshal.dump(t)) => 2010-01-01 00:00:00 -0200 irb(main):005:0> m.zone => nil I wonder if there's a reason for that or it's a bug or something wrong.
[ruby-trunk - Feature #6437][Rejected] Marshaling Time preserve utc_offset but doesn't preserve zone
on 2012-05-16 00:06
Issue #6437 has been updated by drbrain (Eric Hodel). Status changed from Open to Rejected ---------------------------------------- Feature #6437: Marshaling Time preserve utc_offset but doesn't preserve zone https://bugs.ruby-lang.org/issues/6437#change-26647 Author: spastorino (Santiago Pastorino) Status: Rejected Priority: Normal Assignee: Category: Target version: I was wondering why do we have this in Rails https://github.com/rails/rails/blob/master/actives.... I thought it was something particular of old Ruby versions but the same happens in trunk. $ ruby -v ruby 2.0.0dev (2012-05-02 trunk 35517) [x86_64-darwin11.3.0] $ irb irb(main):001:0> t = Time.local(2010) => 2010-01-01 00:00:00 -0200 irb(main):002:0> t.zone => "UYST" irb(main):003:0> m = Marshal.load(Marshal.dump(t)) => 2010-01-01 00:00:00 -0200 irb(main):005:0> m.zone => nil I wonder if there's a reason for that or it's a bug or something wrong.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.