now() public

Returns an ActiveSupport::TimeWithZone instance representing the current time in the time zone represented by self. = 'Hawaii'  # => "Hawaii"         # => Wed, 23 Jan 2008 20:24:27 HST -10:00
Show source
Register or log in to add new notes.
July 15, 2009
0 thanks in views.

Be careful if you use in views with time zone support enabled, as this will not actually do the time zone conversion.

Instead, use