mirror of
https://github.com/github/rails.git
synced 2026-02-12 15:14:55 -05:00
Slightly faster DateTime#to_json. [#598 state:resolved] [Alex Zepeda]
This commit is contained in:
@@ -8,7 +8,7 @@ class DateTime
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user