FabKremer
FabKremer

Reputation: 2179

Get User timezone to show the correct time

I want to be able to show the correct time for every user depending on their timezones, and also be able to store all time records in my database in UTC.

Any thoughts of the best way to do this?

Upvotes: 1

Views: 511

Answers (1)

house9
house9

Reputation: 20614

I wrote a blog post on timezones with rails, you can read it here: http://jessehouse.com/blog/2013/11/15/working-with-timezones-and-ruby-on-rails/

also be sure to watch the rails cast on timezones: http://railscasts.com/episodes/106-time-zones-revised

Upvotes: 1

Related Questions