DST timezones not recognized
This is a duplicate of #703494 ( https:/
From that issue:
>>> dt = datetime.
>>> dt # During DST
datetime.
>>> pytz.timezone(
'CEST'
>>> pytz.timezone(
'CEST'
>>> pytz.timezone(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
raise UnknownTimeZone
pytz.exceptions
And just to confirm:
>>> "CEST" in pytz.all_timezones
False
>>> "CET" in pytz.all_timezones
True
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- pytz Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Ben for more information if necessary.