Forum: Ruby on Rails Date/Time problems on Windows

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2cf63b4f01c4725d1d799ef13b47ee45?d=identicon&s=25 Piers Denney (Guest)
on 2009-05-12 19:06
(Received via mailing list)
Hi All,

I have a system running on Win Server2003 and SqlServer 2008.

Machine is set to GMT-6 for its timezone i.e Central Time with
Daylight Savings enabled.

When I add records, the time shown in the fields is shown in UTC - as
its the current time +5 hours. The times stored in the DB are as
entered (I checked in SQL) in UTC. When the records are retrieved then
get another 5 hours added to them, as if they were stored in local

The environment.rb file shows:

     config.time_zone = 'UTC'

I dont care if the records are stored in UTC or not, but this wacked
out date handling is killing the users as its so confusing. Any ideas/

Many thanks in advance
495e073aa28137a1f25744b4c09da09c?d=identicon&s=25 SIN-YOUNG "DIVINESPEAR" KANG (Guest)
on 2009-05-12 22:30
(Received via mailing list)
may the 'rake time:zones:local' will help you.
replace to one of that result.
This topic is locked and can not be replied to.