time difference on heroku server
Posted
by railsnew
on Stack Overflow
See other posts from Stack Overflow
or by railsnew
Published on 2010-05-06T02:10:36Z
Indexed on
2010/05/06
2:18 UTC
Read the original article
Hit count: 290
ruby-on-rails
|heroku
There seems to be a time difference on heroku server.
>> Customer.last.id
=> 584
>> Customer.last.created_at
=> Thu, 06 May 2010 01:43:20 UTC +00:00
>> Time.zone
=> #<ActiveSupport::TimeZone:0x2b1dec47e5c0 @utc_offset=0, @tzinfo=#<TZInfo::DataTimezone: Etc/UTC>, @name="UTC">
>> Time.now
=> Wed May 05 19:05:15 -0700 2010
>> Time.now.zone
=> "PDT"
Notice that current time is May 05 19...however, created_at date for last record is May 06 01:43.
This does not make any sense. What can be causing this and how would I go about fixing this?
© Stack Overflow or respective owner