Ruby on Rails Monday, February 29, 2016

I'm using a Rails application to access a database from a legacy application. This application stores all datetime fields using Europe/Madrid timezone.

From what I've seem, it's only possible to set config.active_record.default_timezone to :utc (default) or :local which uses the OS timezone.

Since I cannot guarantee that my OS timezone will always be Europe/Madrid, I would like to set a specific timezone for active record.

Is there another of doing this?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3bb0ae0c-b5cd-45b7-9a9a-3d17ceadcf77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment