[Bug 2085147] Re: Wrong timezone detection (always UTC)
Matthias Klose
2085147 at bugs.launchpad.net
Mon Oct 28 17:00:09 UTC 2024
fixed in 2024b-1ubuntu2
** Changed in: tzdata (Ubuntu)
Status: New => Fix Committed
** Tags removed: block-proposed
--
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/2085147
Title:
Wrong timezone detection (always UTC)
Status in tzdata package in Ubuntu:
Fix Committed
Bug description:
With tzdata 2024b-1ubuntu1 (plucky-proposed), the timezone is wrongly
detected to be UTC, no matter what I do.
This is working fine with 2024a-4ubuntu1, which is what was released
in Oracular.
Simple reproducer:
```cpp
#include <chrono>
#include <iostream>
int main() {
const std::chrono::zoned_time cur_time{ std::chrono::current_zone(),
std::chrono::system_clock::now() };
std::cout << cur_time << '\n';
}
```
Compiled with `g++ -std=c++20 main.cpp`
```
$ ./a.out
2024-10-21 16:14:17.489489001 UTC
$ dpkg-query -W tzdata
tzdata 2024b-1ubuntu1
$ sudo apt install tzdata/oracular
[...]
$ dpkg-query -W tzdata
tzdata 2024a-4ubuntu1
$ ./a.out
2024-10-21 18:16:25.554620585 CEST
```
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: tzdata 2024b-1ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-45.45-generic 6.8.12
Uname: Linux 6.8.0-45-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.30.0-0ubuntu4
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: sway
Date: Mon Oct 21 14:11:36 2024
InstallationDate: Installed on 2023-08-02 (446 days ago)
InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
PackageArchitecture: all
ProcEnviron:
LANG=fr_FR.UTF-8
PATH=(custom, no user)
SHELL=/bin/zsh
TERM=alacritty
XDG_RUNTIME_DIR=<set>
SourcePackage: tzdata
UpgradeStatus: Upgraded to plucky on 2024-06-12 (131 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/2085147/+subscriptions
More information about the foundations-bugs
mailing list