Hi all,
Did some research on this forum and found information on naive_datetime
and utc_datetime
. My understanding is that the naive_datetime
does not store the timezone info in it. I am using postgres, and in my migrations I simply said timestamps()
, Looks like the values getting stored here are NaiveDateTime
.
There are suggestions here to use UtcDateTime
for Ecto timestamps()
but I am wondering if NaiveDateTime
is a concern really?
Aren’t the values getting stored in the table UTC
anyway?
On my system, DateTime.utc_now
, and NaiveDateTime.utc_now
seem to yield the same UTC current time
. Am I missing anything here?
I would appreciate some expert insight into this one. Thank you a ton everyone!