Permalink
Browse files

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

  • Loading branch information...
1 parent 95812d5 commit 9783e66cade4d145389cca18fab822f44d03161a @lifo lifo committed Jul 14, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/json/encoders/date_time.rb
@@ -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 9783e66

Please sign in to comment.