如何将本地时间插入到Phoenix的mysql DB的inserted_at和updated_at列中

时间:2018-02-18 01:20:04

标签: elixir phoenix-framework ecto

我在日本。我想将本地时间插入到inserted_at和updated_at列中。目前列插入UTC时间。

是否有合适的地方在Phoenix框架或Ecto设置中设置当地时间?

  • Elixir 1.6
  • Phoenix 1.3
  • MySQL 5.5

0 个答案:

没有答案