Is there a list of Pytz Timezones?
You can list all the available timezones with pytz.all_timezones: There is also pytz.common_timezones:
You can list all the available timezones with pytz.all_timezones: There is also pytz.common_timezones:
the problem is that gives you a naive datetime object – which Python treats as local time by default. Then, in things go wrong since time_from_utc is treated as local time. Instead, set UTC explicitly when calling fromtimestamp: which will give you Final Remarks: with Python 3.9, you have zoneinfo, so you don’t need a … Read more