Path: | lib/active_support/core_ext/time/marshal.rb |
Last Update: | Sun Jul 01 20:25:13 -0400 2012 |
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.