Set the created_at to local time zone. I deployed my app in heroku. But while creating creating record created_at is taking heroku time but not local time. For example: in heroku time is: 26-06-2015 but in my local machine time is: 25-06-2015
I want to store my local machine time not heroku time. I tried to put the below code in application.rb
config.time_zone = 'Eastern Time (US & Canada)'
config.active_record.default_timezone = :local
But not working. Can anyone help me out of this
Aucun commentaire:
Enregistrer un commentaire