diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-04 17:29:40 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-04 17:29:40 -0800 |
commit | 5c666779872e6702f4d826686eab09db37cba062 (patch) | |
tree | 6a213fe6fd04ae0921765dd3fbaa29c6d3e92640 /activesupport/lib | |
parent | 7bd32e4d1d7b5ffe300ce667dd8daa17a2a9ad26 (diff) | |
download | rails-5c666779872e6702f4d826686eab09db37cba062.tar.gz rails-5c666779872e6702f4d826686eab09db37cba062.tar.bz2 rails-5c666779872e6702f4d826686eab09db37cba062.zip |
make our yaml output consistent
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/time_with_zone.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb index 6a7da8266c..8137f8e17e 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -138,11 +138,7 @@ module ActiveSupport end def to_yaml(options = {}) - if options.kind_of?(YAML::Emitter) - utc.to_yaml(options) - else - time.to_yaml(options).gsub('Z', formatted_offset(true, 'Z')) - end + utc.to_yaml(options) end def httpdate |