]> git.ipfire.org Git - people/ms/gcc.git/commit
libstdc++: Use /etc/sysconfig/clock for std::chrono::current_zone() [PR108530]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 Jan 2023 23:43:24 +0000 (23:43 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 24 Jan 2023 23:46:43 +0000 (23:46 +0000)
commite00d5cafbe1a77772ecc57eec921ff0b7dd41344
tree79cace359a4791da0b5d87e97d9cd32cb30d7f10
parent33ed11085837e9492c6ed512931f5b6375c68ee7
libstdc++: Use /etc/sysconfig/clock for std::chrono::current_zone() [PR108530]

On some systems /etc/localtime is a tzfile, not a symlink to one. We
cannot use it to determine the current time zone in that case. See if
/etc/sysconfig/clock sets the variable DEFAULT_TIMEZONE instead.

libstdc++-v3/ChangeLog:

PR libstdc++/108530
* src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
/etc/sysconfig/clock.
libstdc++-v3/src/c++20/tzdb.cc