rathboma
Not a member
rathboma's latest activity
Thursday, June 24 2010
4958
ActiveRecord's to_json method ignores timezone when serializing Time objects
was created
in Ruby on Rails
-
rathboma created the ticket at 4:46 PMSimple example to demonstrate (tested in Rails 2.3.5):
now = Time.parse("Thu Jun 24 15:41:23 UTC 2010")
now2 = Time.parse(now.to_json)check these results out:
...