Hi all,
I'm on a rails 2.3.5 app. I've got my timezone set to 'Brussels';
config.time_zone = 'Brussels'
When I use mysql I see that a date is stored in UTC (as expected);
e.g. 2010-04-07 15:03:10
When I use console to print out the date it correctly returns;
>> job.created_at.strftime('%d %b %Y, %H:%M')
=> "07 Apr 2010, 17:03"
The Time.zone in console returns "Brussels" with an offset of 3600.
However, when I look in my application that same job now has a time of
"07 Apr 2010, 18:03". When I print out the Time.zone in a view I get
"Athens (UTC +2)", adding an extra hour to the job.
We just switched to summer time about a week ago, but I don't get why
the console and webapplication use different Time.zones, while the
config.time_zone is defined in both environments.
Is someone having the same problems or had the same experience?
Stijn
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.