Open pierre-phntm opened 3 months ago
_now staticmethod, used by auto_now_add, is using datetime.datetime.utcnow(), which is deprecated.
_now
auto_now_add
datetime.datetime.utcnow()
DateTimeProperty
time_stamp_field = ndb.DateTimeProperty(tzinfo=datetime.timezone.utc, auto_now_add=True)
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
_now
staticmethod, used byauto_now_add
, is usingdatetime.datetime.utcnow()
, which is deprecated.Environment details
Steps to reproduce
auto_now_add
to aDateTimeProperty
model.Code example
Stack trace