class Resty::RestyRailtie::DateTime
get the time/date format right ;-) and match it with resty
Public Instance Methods
as_json(options = nil)
click to toggle source
# File lib/resty/resty_railtie.rb, line 18 def as_json(options = nil) strftime('%Y-%m-%dT%H:%M:%S.') + ("%06d" % usec) + strftime('%z') end