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
On this page
Latest version 5.4.5, released October 22, 2026.
Its 3.0b1 release drops Python 2. Python end of life dates.
- From 4.0b3 to 5.0: 6 breaking changes in 3 versions.
- From 3.0b1 to 5.0: 7 breaking changes in 4 versions.
tzlocal 5.0 breaking changes
- Removed
tzlocal.utils.get_system_offset
tzlocal.utils.get_system_offset was removed in tzlocal 5.0 pypi.org - Removed
tzlocal.utils.ZoneInfoNotFoundError
tzlocal.utils.ZoneInfoNotFoundError was removed in tzlocal 5.0 pypi.org - Signature changed
tzlocal.utils.assert_tz_offset
Was def assert_tz_offset(tz); now def assert_tz_offset(tz, error=True). pypi.org
tzlocal 5.0b2 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 - 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
tzlocal 5.0b1 breaking changes
- Removed
The deprecation shim was removed, so code relying on it must be updated. github.com
tzlocal 4.0b3 breaking changes
- 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
tzlocal 3.0b1 breaking changes
- Removed
Python 2 is no longer supported. Stay on tzlocal 2.1 if you still need Python 2. github.com - 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
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.