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

fix _get_datetime_now to use UTC offset for current (non-)DST #147

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

HarHarLinks
Copy link
Collaborator

Hardcoding the no_timezone_datetime to September meant that the utcoffset calculated by pytz was always based on the DST variant. Using a naive now makes it automatically choose the correct DST, possibly except for an edge case on DST borders where it might fail.

@HarHarLinks HarHarLinks force-pushed the HarHarLinks/fix-get-datetime-now branch from a2229af to 6dec4d6 Compare February 16, 2024 18:34
@HarHarLinks HarHarLinks merged commit 1743f53 into master Feb 16, 2024
13 checks passed
@HarHarLinks HarHarLinks added the bug Something isn't working label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant