如何使用 Rails 应用程序在 Heroku 中获取 IST 时间
config.active_record.default_timezone = :local
在 config/environments/development.rb 中。上面的代码将时区从 UTC 更改为 IST。
在 config/environments/production.rb 里面
config.active_record.default_timezone = :local
它在heroku中不起作用,为什么?我怎样才能得到 IST 时间。