Why doesn't `config.time_zone` seem to do anything?

前端 未结 2 1556
渐次进展
渐次进展 2020-11-28 10:20

In application.rb, it says:

Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. Run \"rake

2条回答
  •  無奈伤痛
    2020-11-28 10:40

    You need to use in_time_zone (i.e. Time.now.in_time_zone) to get some something other than UTC.

提交回复
热议问题