timezones in rails
Install the tzinfo gem Install the tzinfo_timezone rails plugin Add a time_zone_id to the accounts (or users) table Set ActiveRecord::Base.default_time_zone to :utc Define user2utc and utc2user helpers (for converting times between the user’s time zone and UTC) Search through the code and find every place that either displays a date/time (strftime, etc.) or stores a user-entered time in the database, and make liberal use of user2utc and utc2user