pytz breaking changes
pytz 2020.1 (April 28, 2020) is its newest release with breaking changes, 4 of them. The first: Signature changed pytz.exceptions.InvalidTimeError. Every breaking API change we have recorded in pytz on PyPI: 14 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2026.6, released October 29, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
pytz 2020.1 breaking changes
- Signature changed
pytz.exceptions.InvalidTimeError
Was class InvalidTimeError(Exception); now class InvalidTimeError(Error). pypi.org - Signature changed
pytz.exceptions.UnknownTimeZoneError
Was class UnknownTimeZoneError(KeyError); now class UnknownTimeZoneError(KeyError, Error). pypi.org - Signature changed
pytz.InvalidTimeError
Was class InvalidTimeError(Exception); now class InvalidTimeError(Error). pypi.org - Signature changed
pytz.UnknownTimeZoneError
Was class UnknownTimeZoneError(KeyError); now class UnknownTimeZoneError(KeyError, Error). pypi.org
pytz 2018.3 breaking changes
- Removed
pytz.reference.DSTDIFF
pytz.reference.DSTDIFF was removed in pytz 2018.3 pypi.org - Removed
pytz.reference.DSTEND
pytz.reference.DSTEND was removed in pytz 2018.3 pypi.org - Removed
pytz.reference.DSTOFFSET
pytz.reference.DSTOFFSET was removed in pytz 2018.3 pypi.org - Removed
pytz.reference.DSTSTART
pytz.reference.DSTSTART was removed in pytz 2018.3 pypi.org - Removed
pytz.reference.first_sunday_on_or_after
pytz.reference.first_sunday_on_or_after was removed in pytz 2018.3 pypi.org - Removed
pytz.reference.HOUR
pytz.reference.HOUR was removed in pytz 2018.3 pypi.org - Removed
pytz.reference.Local
pytz.reference.Local was removed in pytz 2018.3 pypi.org - Removed
pytz.reference.STDOFFSET
pytz.reference.STDOFFSET was removed in pytz 2018.3 pypi.org - Removed
pytz.reference.utc
pytz.reference.utc was removed in pytz 2018.3 pypi.org - Removed
pytz.reference.ZERO
pytz.reference.ZERO was removed in pytz 2018.3 pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.