Skip to content

Commit

Permalink
Use ISO8601 in Time#to_json
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Oct 28, 2013
1 parent 7a1e0a7 commit e32fd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/json.rb
Expand Up @@ -184,6 +184,6 @@ def as_json

class Time
def to_json
strftime("%F %T %z").to_json
strftime("%FT%T%z").to_json
end
end

0 comments on commit e32fd7e

Please sign in to comment.