Skip to content

Commit

Permalink
Slightly faster DateTime#to_json. [#598 state:resolved] [Alex Zepeda]
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo authored and tarmo committed Aug 24, 2008
1 parent 482e8fe commit 50c73c2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -8,7 +8,7 @@ def to_json(options = nil)
if ActiveSupport.use_standard_json_time_format
xmlschema.inspect
else
%("#{strftime("%Y/%m/%d %H:%M:%S %z")}")
strftime('"%Y/%m/%d %H:%M:%S %z"')
end
end
end

0 comments on commit 50c73c2

Please sign in to comment.