I generated a scaffold. There I notice that the published_at component is 1 hour behind. The component displayed 2012-May 8 13-34 when it's supposed to be an hour ahead.
In sqlite, the published_at time is shown as 2012-05-08 19:34:00.000000. Also the created_at and up_dated_at are off as well. created_at: 2012-05-08 18:34:02.795241 updated_at: 2012-05-08 18:34:02.795241
config.time_zone = 'Eastern Time (US & Canada)' config.active_record.default_timezone = :local
When I run rake time:zone:local
* UTC -05:00 *
Eastern Time (US & Canada)
But I'm still experiencing the incorrect time issue.
I've been searching but I'm not finding anything solid to a solution. How can I correct these issues so that the values are entered in correctly?
Thanks in advance.
Daylight Savings Time?
If a live server, is it where you think it is?
I believe DST is active on my local server.
The time is correct on the server just not when my app posts in the db.
This topic is now archived. It is frozen and cannot be changed in any way.