views:

110

answers:

1

I understand that default behavior of rails is to save the database records and any date/datetime related columns to UTC time. And we can control the display of date/datetime to the users with config.time_zone in environment.rb. So basically config.time_zone setting is to control the display, by which rails converts records from UTC to the one we specify in config.time_zone.

Is there any way or setting to force rails to save the records in EST rather than UTC and still do the conversion to display based on the config.time_zone setting?

-Satynos

A: 

You should consider the reasoning behind your question. Remember: Rails implements convention over configuration - and you'd better have a very good reason to want to change the convention! Especially on something as arbitrary as how datetime is saved in the database, and given how easy Rails makes it for us to work with dates.

Trevoke