marshal.rb

Path: lib/active_support/core_ext/time/marshal.rb
Last Update: Tue Nov 15 15:53:15 +0100 2011

Pre-1.9 versions of Ruby have a bug with marshaling Time instances, where utc instances are unmarshalled in the local zone, instead of utc. We‘re layering behavior on the _dump and _load methods so that utc instances can be flagged on dump, and coerced back to utc on load.

[Validate]