diff options
author | Geoff Buesing <gbuesing@gmail.com> | 2008-01-23 02:46:47 +0000 |
---|---|---|
committer | Geoff Buesing <gbuesing@gmail.com> | 2008-01-23 02:46:47 +0000 |
commit | abb24b484fcb306be17dd06a8a2d12ca5a035aeb (patch) | |
tree | 96de38f875c4048b27e6fae61de0d00111a66014 /activesupport/lib/active_support/json | |
parent | 2e7b2f03448e5759113ce0c182ed99897342c7a9 (diff) | |
download | rails-abb24b484fcb306be17dd06a8a2d12ca5a035aeb.tar.gz rails-abb24b484fcb306be17dd06a8a2d12ca5a035aeb.tar.bz2 rails-abb24b484fcb306be17dd06a8a2d12ca5a035aeb.zip |
Adding Time and DateTime #formatted_offset, for outputting +HH:MM utc offset strings with cross-platform consistency
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/json')
-rw-r--r-- | activesupport/lib/active_support/json/encoders/time.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/json/encoders/time.rb b/activesupport/lib/active_support/json/encoders/time.rb index 1636b875e3..4f964a92e0 100644 --- a/activesupport/lib/active_support/json/encoders/time.rb +++ b/activesupport/lib/active_support/json/encoders/time.rb @@ -1,5 +1,5 @@ class Time def to_json(options = nil) #:nodoc: - %("#{strftime("%Y/%m/%d %H:%M:%S")} #{utc_offset.to_utc_offset_s(false)}") + %("#{strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}") end end |