From be85868987675a158fd4111393b9161296431728 Mon Sep 17 00:00:00 2001 From: gbuesing Date: Sun, 18 May 2008 10:48:11 -0500 Subject: Time#to_json: don't convert to utc before encoding. References #175 --- activesupport/lib/active_support/json/encoders/time.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/json/encoders/time.rb') diff --git a/activesupport/lib/active_support/json/encoders/time.rb b/activesupport/lib/active_support/json/encoders/time.rb index 3660d87c82..57ed3c9e31 100644 --- a/activesupport/lib/active_support/json/encoders/time.rb +++ b/activesupport/lib/active_support/json/encoders/time.rb @@ -6,7 +6,7 @@ class Time # # => 2005/02/01 15:15:10 +0000" def to_json(options = nil) if ActiveSupport.use_standard_json_time_format - utc.xmlschema.inspect + xmlschema.inspect else %("#{strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}") end -- cgit v1.2.3