Closed GLEF1X closed 1 year ago
The function datetime_to_utc_in_iso_format has a bug. pytz.utc.localize(obj) is a wrong way to actually localize the datetime object.
datetime_to_utc_in_iso_format
pytz.utc.localize(obj)
TODO:
datetime.astimezone(pytz.UTC)
pytz
zoneinfo
The function
datetime_to_utc_in_iso_format
has a bug.pytz.utc.localize(obj)
is a wrong way to actually localize the datetime object.TODO:
datetime.astimezone(pytz.UTC)
pytz
on python > 3.9. Instead of it use the builtin packagezoneinfo
.