aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorDaniel Morrison <daniel@collectiveidea.com>2008-05-12 22:02:04 -0400
committerrick <rick@spacemonkey.local>2008-05-13 09:50:45 -0700
commitf498f221bdd88a04458f56ee917c360bca833e94 (patch)
treed7ca8c8cbc2265079106e1590396c07ccb4bb199 /activesupport/lib/active_support
parent74fd17346f30fddba0e174ae17f5697f2c22279e (diff)
downloadrails-f498f221bdd88a04458f56ee917c360bca833e94.tar.gz
rails-f498f221bdd88a04458f56ee917c360bca833e94.tar.bz2
rails-f498f221bdd88a04458f56ee917c360bca833e94.zip
Include time zone offset in TimeWithZone#to_json
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/time_with_zone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb
index 21ddcaad48..48606dbcff 100644
--- a/activesupport/lib/active_support/time_with_zone.rb
+++ b/activesupport/lib/active_support/time_with_zone.rb
@@ -78,7 +78,7 @@ module ActiveSupport
def to_json(options = nil)
if ActiveSupport.use_standard_json_time_format
- utc.xmlschema.inspect
+ xmlschema.inspect
else
%("#{time.strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}")
end