From f498f221bdd88a04458f56ee917c360bca833e94 Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Mon, 12 May 2008 22:02:04 -0400 Subject: Include time zone offset in TimeWithZone#to_json --- activesupport/lib/active_support/time_with_zone.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') 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 -- cgit v1.2.3