Last Updated: February 25, 2016
·
4.68K
· lest

Get current time in Rails app

You could use Time.current instead of Time.zone.now.

There is also Date.current which is timezone aware version of Date.today.

3 Responses
Add your response

Wow! :)

over 1 year ago ·

Did you mean Date.current?

over 1 year ago ·

@soulim Thanks! Fixed.

over 1 year ago ·