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 :) rails 1.2.2 mysql 5.0.32 -antti -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 :) > > rails 1.2.2 > mysql 5.0.32I should add that this concerns only ActiveRecord - otherwise current time is shown correctly. -antti -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---