I have a Phoenix app using Html.Form datetime_select
I fill user input using Timex zone convert in Europe/Tallinn (UTC+2):
Saved result is same as input
Shouldn’t it be saved as UTC, since all times are UTC in db?
Q: Where should this convert to UTC? Should i create custom Ecto.Type for this? or in changeset before insert? or can Ecto handle it itself?
inserted_at and updated_at are correctly in UTC
Phoenix 1.4, Ecto 3.0, Postgres