I have an existing database where all dates/times are in PST and I'm
interested in adding time zone support for our users.

My setup:

# environment.rb
config.active_record.default_timezone = :local
config.time_zone = 'Pacific Time (US & Canada)'

With a before_filter to set each user's time zone.

All the documentation I've founds says your database needs to be in
UTC for this to work, but this seems to be working fine, including
adjusting times for daylight savings time. Am I missing something?
Will it implode during certain dates/times?

Thanks,

Javan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to