Ecto timestamps as utc_datetime
When you define your Ecto schema with timestamps the default is to use naive_datetime
but you have an option to specify utc_datetime
if that's what you want:
schema "products" do
...
timestamps(type: :utc_datetime)
end
Tweet