Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 11th, 2012, 07:42 PM
nubianniht nubianniht is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 76 nubianniht User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 46 m 19 sec
Reputation Power: 6
Question 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

My configs:
config.time_zone = 'Eastern Time (US & Canada)' config.active_record.default_timezone = :local

When I run rake time:zone:local
* UTC -05:00 *
Bogota
Eastern Time (US & Canada)
Indiana (East)
Lima
Quito

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?

Please help

Thanks in advance.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Correcting timestamps to DB

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap