Actions
Bug #3035
closedTime#zone doesn't round-trip
Description
=begin
Time.now.zone
=> "PDT"
Marshal.load(Marshal.dump(Time.now)).zone
=> nil
=end
Updated by nobu (Nobuyoshi Nakada) over 14 years ago
- Status changed from Open to Rejected
=begin
It's intended.
Time#utc_offset does round-trip but not #zone.
=end
Updated by bitsweat (Jeremy Daer) over 14 years ago
=begin
Ok. I found a good explanation in this thread: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/22892
I think it would be more pragmatic to include the zone name and fall back to utc_offset. Lossy marshaling is surprising.
=end
Actions
Like0
Like0Like0