Displaying 1 result from an estimated 1 matches for "14_400".
Did you mean:
14400
2005 Apr 04
0
Rails timezone problems / DST
...s are a serious pain in the ass, but leaving out the weird
edge cases, and dropping support for historical dates, but without DST
support you find problems like:
Eastern Time (I''m in Boston) is listed as being 18_000 seconds offset
from UTC, but as of 2am this morning, we''re only 14_400 seconds from
UTC.
So if I''ve got an application where I''m saving items with created_at
in UTC (ActiveRecord::Base.default_timezone = :utc), but I want to be
able to display the created times in a user''s local time, so I''ve got
some code like (where @user_tz is a...