samedi 17 octobre 2015

How to show Time.now based on TimeZone - Rails 4

Hey guys i am trying to show server time but instead it shows local time. Is it possible to set server timezone to something like canada?

i tried this in application.rb

config.time_zone = 'Central Time (US & Canada)'

but when i use Time.now it shows local time.

Would appreciate your help.

Aucun commentaire:

Enregistrer un commentaire