Rails app config.time_zone not applying when populating form fields for '/edit' view

前端 未结 3 718
后悔当初
后悔当初 2021-01-03 02:17

I specified config.time_zone in my Rails app, but the retrieved times in form fields still render as the UTC (which creates problems on updates). Shouldn\'t this be convert

3条回答
  •  庸人自扰
    2021-01-03 02:42

    You can do something like this:

    heroku config:add TZ=America/Chicago
    

    That should fix your issue on Heroku.

提交回复
热议问题