Friday, November 11, 2011

How Rails 2.x and 3.x handles time zones with mysql

Very good post on how rails handles time zones with mysql

Mode 2: Automatic time zone conversion is enabled
  • This is the default when you create a new Rails 3 application, but not when you create a Rails 2 application.
  • In this mode Rails keeps all Time object in the configured zone, but stores them in MySQL as UTC times (regardless of the time zone you chose).

No comments:

Post a Comment