Time.now & Created_at are different? Ruby on Rails

Posted by Elliot on Stack Overflow See other posts from Stack Overflow or by Elliot
Published on 2010-03-25T00:47:42Z Indexed on 2010/03/25 0:53 UTC
Read the original article Hit count: 473

Filed under:

My site is deployed on heroku. Time.now will return today, but the created_at field of a record (created right now) will say its tomorrow. I assume this has to do with server time?

Is there a way to make sure they're the same? Best, Elliot

© Stack Overflow or respective owner

Related posts about ruby-on-rails