Skip to content

Replace pytz with zoneinfo - #717

Closed
davetapley wants to merge 1 commit into
duckdb:mainfrom
JEFuller:main
Closed

davetapley wants to merge 1 commit into
duckdb:mainfrom
JEFuller:main

Conversation

@davetapley

@davetapley davetapley commented Oct 24, 2026 •

Copy link
Copy Markdown

Surprisingly few changes.

Only caveat is that if the system doesn't have IANA timezone data, fetching a TIMESTAMP WITH TIME ZONE as a datetime could raise ZoneInfoNotFoundError.

Fix would be:

  • Windows: install tzdata
  • Linux/macOS: ensure the system’s timezone database is installed and available.

Untested assumption: I presume since anyone using this functionality would already have pytz explicitly installed anyway (see duckdb/duckdb#11974), it shouldn't be an issue.

#406

@evertlammerts

Copy link
Copy Markdown
Member

Thanks! #710 has this fix already and will land after #719

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