[Bug 2096974] Re: tzdata-2024b-0ubuntu0.24.04 makes std::chrono unusable
Benjamin Drung
2096974 at bugs.launchpad.net
Thu Jan 30 19:28:41 UTC 2025
It looks like the upstream commit
https://github.com/eggert/tz/commit/94e6b3b0eb773e66a9ac49b905c69c0fa6a31dc3
is the reason for it.
As workaround switch from the main format to the rearguard format until
std::chrono is fixed. The NEWS file says:
The main source files' time zone abbreviations now use %z,
supported by zic since release 2015f and used in vanguard form
since release 2022b. For example, America/Sao_Paulo now contains
the zone continuation line "-3:00 Brazil %z", which is less error
prone than the old "-3:00 Brazil -03/-02". This does not change
the represented data: the generated TZif files are unchanged.
Rearguard form still avoids %z, to support obsolescent parsers.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to tzdata in Ubuntu.
https://bugs.launchpad.net/bugs/2096974
Title:
tzdata-2024b-0ubuntu0.24.04 makes std::chrono unusable
Status in gcc-14 package in Ubuntu:
Confirmed
Status in tzdata package in Ubuntu:
Triaged
Status in waybar package in Ubuntu:
New
Status in gcc-14 source package in Noble:
New
Status in tzdata source package in Noble:
New
Status in waybar source package in Noble:
New
Status in gcc-14 source package in Oracular:
New
Status in tzdata source package in Oracular:
New
Status in waybar source package in Oracular:
New
Bug description:
inalling tzdata in version 2024b-0ubuntu0.24.04 causes std::chrono to
deliver only 2 timezones:
code:
for (const auto & time_zone : std::chrono::get_tzdb().zones)
{
std::cout << time_zone.name() << std::endl;
}
output:
Etc/GMT
Etc/UTC
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-14/+bug/2096974/+subscriptions
More information about the foundations-bugs
mailing list