aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json/encoding.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-01 19:03:18 -0300
committerJosé Valim <jose.valim@gmail.com>2010-07-02 01:51:03 +0200
commitcb321546b7aef33fcf5466b61f79bd9198cd12b5 (patch)
treed88f876b8685f3b58a5b89046c4aec5778d0c09b /activesupport/lib/active_support/json/encoding.rb
parentf7ba614c2db31933cbc12eda87518de3eca0228c (diff)
downloadrails-cb321546b7aef33fcf5466b61f79bd9198cd12b5.tar.gz
rails-cb321546b7aef33fcf5466b61f79bd9198cd12b5.tar.bz2
rails-cb321546b7aef33fcf5466b61f79bd9198cd12b5.zip
Time has it own implementation of xmlschema, now AMo doesn't depend on TZInfo
[#4979 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support/json/encoding.rb')
-rw-r--r--activesupport/lib/active_support/json/encoding.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/json/encoding.rb b/activesupport/lib/active_support/json/encoding.rb
index 3f266d1e96..dbce7e710a 100644
--- a/activesupport/lib/active_support/json/encoding.rb
+++ b/activesupport/lib/active_support/json/encoding.rb
@@ -9,7 +9,7 @@ require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/hash/slice'
require 'active_support/core_ext/object/instance_variables'
-require 'active_support/time'
+require 'time'
module ActiveSupport
class << self
@@ -212,7 +212,7 @@ class Time
if ActiveSupport.use_standard_json_time_format
xmlschema
else
- %(#{strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)})
+ strftime("%Y/%m/%d %H:%M:%S %z")
end
end
end