I am using Rails 2.3.3 with Postgresql.
In my application environment.rb file I have set config.time_zone = 'UTC'
and in my before_filter I set Time.zone = current_user.time_zone
.
The problem I face is the Time that gets saved is in the users time_zone but gets saved as UTC in the database.
For example if I select 12:00 am IST (i.e +530 IST) it gets stored as 12:00 am UTC. However locally the configurations seem to work as expected and while fetching the data the time gets converted to the users time_zone so it gains 530 hours.
Would appreciate some help on this.
Thanks