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: Use date.replace instead of localize #1362

Closed
wants to merge 1 commit into from
Closed

Fix: Use date.replace instead of localize #1362

wants to merge 1 commit into from

Conversation

rootandroo
Copy link

Fixed an issue with timezone handling in the sanitize_datetime function. It replaces the use of the localize method (specific to pytz) with the replace method, which is compatible with both pytz and zoneinfo.

@WhyNotHugo
Copy link
Member

This is just syntax changes, I don't see any changes in logic anywhere.

@rootandroo
Copy link
Author

Oh my editor automatically changed the syntax I'll resubmit with only the change

@rootandroo rootandroo changed the title Fix: Use timezone.replace instead of localize Fix: Use date.replace instead of localize Oct 12, 2024
@rootandroo rootandroo closed this by deleting the head repository Oct 12, 2024
@WhyNotHugo
Copy link
Member

WhyNotHugo commented Oct 12, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants