Results 1 to 3 of 3
Thread: Correcting timestamps to DB
May 11, 2012, 17:50 #1
- Join Date
- Mar 2008
- 0 Post(s)
- 0 Thread(s)
Correcting timestamps to DB
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.