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

# tzlocal breaking changes

tzlocal 5.0 (May 14, 2023) is its newest release with breaking changes, 3 of them. The first: Removed tzlocal.utils.get_system_offset. Every breaking API change we have recorded in tzlocal on PyPI: 9 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.4.5`, released October 22, 2026. 

Its 3.0b1 release drops Python 2. [Python end of life dates](https://since.dev/calendar/python.md).

- From [4.0b3](#v-4-0b3) to [5.0](#v-5-0): 6 breaking changes in 3 versions.
- From [3.0b1](#v-3-0b1) to [5.0](#v-5-0): 7 breaking changes in 4 versions.

## tzlocal 5.0 breaking changes

tzlocal 5.0, released May 14, 2023: 3 breaking changes.

- **Removed** `tzlocal.utils.get_system_offset`  

tzlocal.utils.get_system_offset was removed in tzlocal 5.0 [pypi.org](https://pypi.org/project/tzlocal/5.0/)
- **Removed** `tzlocal.utils.ZoneInfoNotFoundError`  

tzlocal.utils.ZoneInfoNotFoundError was removed in tzlocal 5.0 [pypi.org](https://pypi.org/project/tzlocal/5.0/)
- **Signature changed** `tzlocal.utils.assert_tz_offset`  

Was def assert_tz_offset(tz); now def assert_tz_offset(tz, error=True). [pypi.org](https://pypi.org/project/tzlocal/5.0/)

## tzlocal 5.0b2 breaking changes

tzlocal 5.0b2, released May 14, 2023: 2 breaking changes.

- **Behavior changed**  

The system offset is now computed differently to handle temporary non-DST changes such as Ramadan time in Morocco, which can alter results. [github.com](https://github.com/regebro/tzlocal/blob/5.0/CHANGES.txt)
- **Default changed**  

The default now warns only when the timezone offset and system offset disagree, and no longer warns when TZ is set. [github.com](https://github.com/regebro/tzlocal/blob/5.0/CHANGES.txt)

## tzlocal 5.0b1 breaking changes

tzlocal 5.0b1, released May 14, 2023: 1 breaking change.

- **Removed**  

The deprecation shim was removed, so code relying on it must be updated. [github.com](https://github.com/regebro/tzlocal/blob/5.0/CHANGES.txt)

## tzlocal 4.0b3 breaking changes

tzlocal 4.0b3, released October 18, 2021: 1 breaking change.

- **Removed**  

The package no longer supports Windows 2000, XP or Vista; it supports Windows 7, 8 and 10. Users on the dropped Windows versions must upgrade their OS or stay on an older release. [github.com](https://github.com/regebro/tzlocal/blob/4.0/CHANGES.txt)

## tzlocal 3.0b1 breaking changes

tzlocal 3.0b1, released August 13, 2021: 2 breaking changes.

- **Removed**  

Python 2 is no longer supported. Stay on tzlocal 2.1 if you still need Python 2. [github.com](https://github.com/regebro/tzlocal/blob/3.0/CHANGES.txt)
- **Behavior changed**  

Timezones now come from the standard library zoneinfo module instead of pytz, so code relying on pytz timezone objects may need changes. [github.com](https://github.com/regebro/tzlocal/blob/3.0/CHANGES.txt)

## 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.
