Activerecord time problem


#1

Hi,

I have a strange problem in my hands. My application works correctly for
a while (I don’t know actual time but it is hours), but then suddenly
created_at/updated_at timestamps are stored in UTC and not in the
correct timezone (server is in that timezone, mysql gives correct time,
environment.rb has the correct timezone).

Any ideas what is causing this? And more importantly - how to fix this?
I don’t want to be restarting my server every now and then because of
this :slight_smile:

rails 1.2.2
mysql 5.0.32

-antti


#2

Antti Akonniemi wrote:

Hi,

I have a strange problem in my hands. My application works correctly for
a while (I don’t know actual time but it is hours), but then suddenly
created_at/updated_at timestamps are stored in UTC and not in the
correct timezone (server is in that timezone, mysql gives correct time,
environment.rb has the correct timezone).

Any ideas what is causing this? And more importantly - how to fix this?
I don’t want to be restarting my server every now and then because of
this :slight_smile:

rails 1.2.2
mysql 5.0.32

I should add that this concerns only ActiveRecord - otherwise current
time is shown correctly.

-antti