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

Replace tz.localize with date.replace #1363

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rootandroo
Copy link

@rootandroo rootandroo commented Oct 12, 2024

Resubmitted PR without syntax changes #1362

@WhyNotHugo
Copy link
Member

Tests don't pass; we still rely on other pytz-specific attributes.

iamleot added a commit to iamleot/khal that referenced this pull request Oct 31, 2024
For timezone functionalities icalendar can use both pytz and zoneinfo,
preferring zoneinfo.

We rely on pytz for several attributes, stick to it.

Fixes pimutils#1361.
Should obsolete pimutils#1363.
iamleot added a commit to iamleot/khal that referenced this pull request Oct 31, 2024
For timezone functionalities icalendar can use both pytz and zoneinfo,
preferring zoneinfo.

We rely on pytz for several attributes, stick to it.

Fixes pimutils#1361.
Should obsolete pimutils#1363.
iamleot added a commit to iamleot/khal that referenced this pull request Oct 31, 2024
For timezone functionalities icalendar can use both pytz and zoneinfo,
preferring zoneinfo.

We rely on pytz for several attributes, stick to it.

Fixes pimutils#1361.
Should obsolete pimutils#1363.
@iamleot
Copy link

iamleot commented Oct 31, 2024

I have tried to address that in #1364.

icalendar exposes a use_pytz() and I think it's safer and less intrusive. When running the tests (and also when running for real khal!) I have seen several problems due unavailability of icalendar.windows_to_olson and I've fixed that too.

All the tests now passes for me with #1364.

I think that PR can obsolete/close this one if it looks good to you!

Thank you!

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.

3 participants