Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # If you're building the JSON provider with Rails,
- # add to the as_json method of TimeWtihZone by adding
- # this file to your config/initializers/
- class ActiveSupport::TimeWithZone
- def as_json(options = {})
- strftime('%Y/%m/%d %H:%M:%S %z')
- end
- end
Add Comment
Please, Sign In to add comment