public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Slightly faster DateTime#to_json. [#598 state:resolved] [Alex Zepeda]
lifo (author)
Sun Jul 13 17:02:07 -0700 2008
Tarmo Tänav (committer)
Sun Aug 24 09:26:40 -0700 2008
commit  50c73c2dfd0d5eb880426e7bc385bcee004ffe3e
tree    5c7acd1d36c8d97c2724be267292ab5cf66645b8
parent  482e8fe62a58fb2b56875cea13d082bd09b3f228
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@ class DateTime
0
     if ActiveSupport.use_standard_json_time_format
0
       xmlschema.inspect
0
     else
0
-      %("#{strftime("%Y/%m/%d %H:%M:%S %z")}")
0
+      strftime('"%Y/%m/%d %H:%M:%S %z"')
0
     end
0
   end
0
 end

Comments