How can I save in this unix epoch datetimeformat like this
2019-11-12T10:26:39.613Z
into models.DateTimeField accurately
I tried with this but as you can see, assigning with datetime.datetime.strptime seems correct, but after I save it, the datetime value changes (which is then inaccurate)
>>> b.updated_at = datetime.datetime.strptime("2019-11-12T10:26:39.613Z", '%Y-%m-%dT%H:%M:%S.%fZ')
>>> b.updated_at
datetime.datetime(2019, 11, 12, 10, 26, 39, 613000)
>>> b.save()
>>> b.updated_at
datetime.datetime(2019, 11, 12, 3, 1, 35, 82434, tzinfo=<UTC>)
in model.py
updated_at = models.DateTimeField(auto_now=True)
I am using Django 1.11 and Postgres 9.4