time difference on heroku server
- by railsnew
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?