Skip to content
This repository
Browse code

Slightly faster DateTime#to_json. [#598 state:resolved] [Alex Zepeda]

  • Loading branch information...
commit 50c73c2dfd0d5eb880426e7bc385bcee004ffe3e 1 parent 482e8fe
Pratik authored July 14, 2008 tarmo committed August 24, 2008
2  activesupport/lib/active_support/json/encoders/date_time.rb
@@ -8,7 +8,7 @@ def to_json(options = nil)
8 8
     if ActiveSupport.use_standard_json_time_format
9 9
       xmlschema.inspect
10 10
     else
11  
-      %("#{strftime("%Y/%m/%d %H:%M:%S %z")}")
  11
+      strftime('"%Y/%m/%d %H:%M:%S %z"')
12 12
     end
13 13
   end
14 14
 end

0 notes on commit 50c73c2

Please sign in to comment.
Something went wrong with that request. Please try again.