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

Default to using system zoneinfo if available #303

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

jelly
Copy link
Contributor

@jelly jelly commented Mar 31, 2025

The zoneinfo module by default uses the systems timezone information and if not found falls back to tzdata. This change makes get_timezone() behave the same allowing for tzdata to fully become an optional dependency for Linux distributions which already include time zone data.

Closes: #291

The zoneinfo module by default uses the systems timezone information and
if not found falls back to tzdata. This change makes `get_timezone()`
behave the same allowing for tzdata to fully become an optional
dependency for Linux distributions which already include time zone data.

Closes: pydantic#291
@yezz123 yezz123 merged commit a257599 into pydantic:main Mar 31, 2025
10 checks passed
@jelly jelly deleted the tzdata-optional branch March 31, 2025 10:19
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.

Unnecessary dependency on tzdata on python 3.12 for timezone_name
2 participants