---
title: "pytz 2020.1 Breaking Changes on PyPI | Since.dev"
description: "What each pytz release removed, renamed or changed: 14 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pytz
last_updated: 2026-12-04
---

# 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

Latest version `2026.6`, released October 29, 2026. [Source repository](https://github.com/stub42/pytz)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [2018.3](#v-2018-3) to [2020.1](#v-2020-1): 4 breaking changes in 1 version.

## pytz 2020.1 breaking changes

pytz 2020.1, released April 28, 2020: 4 breaking changes.

- **Signature changed** `pytz.exceptions.InvalidTimeError`  

Was class InvalidTimeError(Exception); now class InvalidTimeError(Error). [pypi.org](https://pypi.org/project/pytz/2020.1/)
- **Signature changed** `pytz.exceptions.UnknownTimeZoneError`  

Was class UnknownTimeZoneError(KeyError); now class UnknownTimeZoneError(KeyError, Error). [pypi.org](https://pypi.org/project/pytz/2020.1/)
- **Signature changed** `pytz.InvalidTimeError`  

Was class InvalidTimeError(Exception); now class InvalidTimeError(Error). [pypi.org](https://pypi.org/project/pytz/2020.1/)
- **Signature changed** `pytz.UnknownTimeZoneError`  

Was class UnknownTimeZoneError(KeyError); now class UnknownTimeZoneError(KeyError, Error). [pypi.org](https://pypi.org/project/pytz/2020.1/)

## pytz 2018.3 breaking changes

pytz 2018.3, released February 9, 2018: 10 breaking changes.

- **Removed** `pytz.reference.DSTDIFF`  

pytz.reference.DSTDIFF was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)
- **Removed** `pytz.reference.DSTEND`  

pytz.reference.DSTEND was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)
- **Removed** `pytz.reference.DSTOFFSET`  

pytz.reference.DSTOFFSET was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)
- **Removed** `pytz.reference.DSTSTART`  

pytz.reference.DSTSTART was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)
- **Removed** `pytz.reference.first_sunday_on_or_after`  

pytz.reference.first_sunday_on_or_after was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)
- **Removed** `pytz.reference.HOUR`  

pytz.reference.HOUR was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)
- **Removed** `pytz.reference.Local`  

pytz.reference.Local was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)
- **Removed** `pytz.reference.STDOFFSET`  

pytz.reference.STDOFFSET was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)
- **Removed** `pytz.reference.utc`  

pytz.reference.utc was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)
- **Removed** `pytz.reference.ZERO`  

pytz.reference.ZERO was removed in pytz 2018.3 [pypi.org](https://pypi.org/project/pytz/2018.3/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
