[Bug 2096974] Re: tzdata-2024b-0ubuntu0.24.04 makes std::chrono unusable
Taylor Brown
2096974 at bugs.launchpad.net
Fri Jan 31 02:02:57 UTC 2025
Works for me! After
wget http://archive.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2024b-1ubuntu2.2_all.deb
sudo dpkg -i tzdata_2024b-1ubuntu2.2_all.deb
c++ lines with
std::chrono::locate_zone("America/New_York")
no longer throw an error such as
terminate called after throwing an instance of 'std::runtime_error'
what(): std::chrono::tzdb: cannot locate zone: America/New_York
Aborted (core dumped)
--
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:
Fix Committed
Status in waybar source package in Noble:
New
Status in gcc-14 source package in Oracular:
New
Status in tzdata source package in Oracular:
Fix Committed
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