Last Updated: February 25, 2016
·
621
· caedes

Real time in Rails

Be sure to use Time.zone.now to have real time:

>> Time.zone.now
=> Wed, 12 Dec 2012 12:12:12 UTC +00:00
>> Time.now
=> 2012-12-12 13:12:13 +0100

1 Response
Add your response

Use Time.current

over 1 year ago ·