Hello,
I've Googled and searched for this for many hours now and couldn't
find an answer although I did find a lot about timezones and rails.
Specifically I'm attaching a basic Rails CRUD frontend onto a legacy
database. The datetime fields in the database are stored as Eastern
Standard Time. There is a lot of legacy code that uses this database
and is expecting to get back times in EST, so I can't change them to
UTC.
Is there a way in Rails to tell ActiveRecord to use Eastern for
storing the datetime fields?
I've tried a number of combinations for config.time_zone and
config.active_record.default_timezone. FYI, rake time:zones:local
returns * UTC -06:00 * Central Time (US & Canada).
Any ideas would be greatly appreciated.
Thanks,
-Jonathan
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment