Invalid DST boundaries/utc_transition_times
Hi,
I have started using pytz to find DST boundaries for any given zone using utc_transition_
If we have invalid boundaries any check to see if a given date is in DST during this invalid period would be incorrect
Israel will still be under daylight savings on Oct 9th 2019 , but pytz incorrectly identifies this date as no tin DST (offset = 0)
Python code to recreate:
print bool(timezone(
more ex:
Asia/Jerusalem: Per Olson DST starts in last week of march and ends in last week of october. But as you see the end dates are incorrect end dates
datetime.
datetime.
datetime.
Correct end date is last week of October. Ex: for 2019 the date should have been datetime.
Asia/Baku should not have any DST
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- pytz Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Vijay Kal
- Solved:
- Last query:
- Last reply: