Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daylight savings time is not taken into account for align_date_to_month #2

Closed
href opened this issue Nov 5, 2020 · 0 comments
Closed

Comments

@href
Copy link
Contributor

href commented Nov 5, 2020

When a date is aligned with the beginning/end of a month, the resulting date keeps the initial timezone, not taking daylight savings time (DST) into account.

For example, if align_date_to_month(date, 'Europe/Zurich', 'up') is run against October 1st 2020, the resulting date has a timezone object that thinks it is part of daylight savings time, even though that changed on October 26.

To illustrate the issue I wrote a test. See:
master...href:master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants