SQLSTATE 22009Severity lowLab verified

Incident brief

Time zone displacement out of range

A timestamptz literal whose explicit UTC offset lies outside the valid range (about -15:59 to +15:59) raises this data exception; +16:00 is out of range.

What lands in your log

ERROR: time zone displacement out of range: "2026-01-01 12:00:00+16:00"

Reproduced on PostgreSQL 18.4Verified 2026-07-24 (isolated lab, PostgreSQL 18.4)Verified against PostgreSQL 18.4 in an isolated lab environment

In 10 seconds

What triggers it
Write a TIMESTAMP WITH TIME ZONE literal with an explicit offset beyond the allowed range, such as +16:00.
Fix
Use a valid UTC offset (within about +/-15:59).
Proof
Reproduced on PostgreSQL 18.4 → A single SELECT reproduces SQLSTATE 22009; the +16:00 displacement is rejected while the literal is parsed.

Fix

What to do right now

Application-level steps for this error.

  • Use a valid UTC offset (within about +/-15:59).
  • Fix the source data or the offset generator so displacements stay in range; the server stores in UTC and renders in the session zone.
Fix SQL
-- Use a UTC offset within the valid range.
SELECT TIMESTAMP WITH TIME ZONE '2026-01-01 12:00:00+02:00';

Connected

Everything this error touches

Every page this SQLSTATE connects to: the concept that explains it, the runbooks that fix it, the parameters you tune to prevent it, and the sibling errors it travels with. All real cross-references. Jump straight in, or open the full interactive map.

Open in the interactive map →

Verification

PG 18.4
Last verified
2026-07-24 (isolated lab, PostgreSQL 18.4)
Verification scope
Verified against PostgreSQL 18.4 in an isolated lab environment
Audit status
reviewed
ShareLinkedInX

Went further?

Pro unlocks the second lab proof

Free page stops the bleeding. Pro adds the operational test, SQLSTATE audit, and deeper evidence, same error, more certainty.

FollowSubstackLinkedInnew errors · lab notes · hiring loops