diff options
Diffstat (limited to 'activesupport/lib/active_support/json/encoders/date_time.rb')
-rw-r--r-- | activesupport/lib/active_support/json/encoders/date_time.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/json/encoders/date_time.rb b/activesupport/lib/active_support/json/encoders/date_time.rb new file mode 100644 index 0000000000..28cb18977d --- /dev/null +++ b/activesupport/lib/active_support/json/encoders/date_time.rb @@ -0,0 +1,5 @@ +class DateTime + def to_json #:nodoc: + %("#{strftime("%m/%d/%Y %H:%M:%S %Z")}") + end +end |