Open andersk opened 1 month ago
https://docs.python.org/3/whatsnew/3.12.html#deprecated
datetime.datetime’s utcnow() and utcfromtimestamp() are deprecated and will be removed in a future version. Instead, use timezone-aware objects to represent datetimes in UTC: respectively, call now() and fromtimestamp() with the tz parameter set to datetime.UTC.
datetime.datetime
utcnow()
utcfromtimestamp()
now()
fromtimestamp()
tz
datetime.UTC
https://docs.python.org/3/whatsnew/3.12.html#deprecated