Joined June 2013
·

Benjamin Wood

Vancouver, WA
·
·

I believe you'd want to set Time.zone back to whatever it was before in the example above, otherwsie the Time class will be set to the last users zone until restart (or something else changes it).

An alternate might be:

ActiveSupport::TimeZone.new(user.time_zone).parse('2012-10-22 09:25:00')

Achievements
19 Karma
0 Total ProTip Views
Interests & Skills