Landing: 864f26bd7548

Project / Subsystem

gcc / libstdc++

Date

2026-04-26

Author

Álvaro Begué

Commit

864f26bd7548d1a290b334b8f5375199449fcff5

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
commit_hash
864f26bd7548d1a290b334b8f5375199449fcff5
source_type
github
headline
libstdc++: Fix numeric save offset on Zone lines [PR124851]
tldr
Fixes a bug in libstdc++ that caused incorrect timezone offsets when Zone lines specified numeric DST save values.
author
Álvaro Begué
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libstdc++
  • timezone
  • bugfix
  • DST
discussion_id_link
bugzilla_pr
date
2026-04-26T00:00:00.000Z

This commit corrects how libstdc++ handles numeric save offsets in Zone lines within the timezone database. Previously, the standard offset was incorrectly stored in ZoneInfo::m_offset, ignoring the numeric save value. This resulted in incorrect timezone offsets being reported. The fix ensures that m_offset consistently stores only the standard offset, and the save value is added back when needed, resolving the inconsistency and providing accurate timezone information.