Slightly faster DateTime#to_json. [#598 state:resolved] [Alex Zepeda]
This commit is contained in:
parent
95812d5eaf
commit
9783e66cad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue