For as long as you’re not inserting the timestamps manually (e.g. insert_all
), but let ecto handle them you can basically switch them out at any time. Ecto does default to NaiveDateTime.utc_now()
, so it’s going to be a utc datetime no matter what and on the db side there’s no difference between an :naive_datetime
and :utc_datetime
field.
3 Likes