# What this PR does This older version of recurring_ical_events does not call the pytz .normalize() function, which can cause some invalid datetime objects to return when a DST swap happens. For example: Nov 3, 2024 9:00 AM CDT instead of the correct 8:00 AM CST). By calling tz.normalize on the end date and checking if the time zone information changed, we can detect when DST starts/stops and adjust the end date accordingly. | | DST stopping on November 3, 2024: | DST starting on March 9, 2024 | |-|-----------------------------------------|-----------------------------------| | Before |  |  | After |  |  | ## Which issue(s) this PR closes Closes #5247 ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. --------- Co-authored-by: Matias Bordese <mbordese@gmail.com> |
||
|---|---|---|
| .. | ||
| ical_events | ||
| migrations | ||
| models | ||
| tasks | ||
| tests | ||
| __init__.py | ||
| constants.py | ||
| exceptions.py | ||
| ical_utils.py | ||