diff options
author | Peter Wu <peter@lekensteyn.nl> | 2017-10-28 23:01:58 -0700 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2017-11-22 23:34:58 +0000 |
commit | 110e49c9cecca34dfacad33d19e04612cc2671b2 (patch) | |
tree | 1dbf669cc1a40fa7607435836b492acb97ffe520 /src/plugins/platforms/xcb/qxcbscreen.h | |
parent | bdf1045b715e43eaedd1d9c4de78c4d7ce0e28ba (diff) |
QTimeZonePrivate: prefer /etc/localtime over /etc/timezone
On modern distros (e.g. those using systemd), /etc/localtime is always a
symlink. As that file is actually used by libraries (see tzset(3)),
prefer it over /etc/timezone (which is no longer needed since
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803144).
This fixes a wrongly reported local timezone when a stale /etc/timezone
file exists. While at it, improve sanity check for localtime symlink.
Change-Id: I8557a58acf21afaeca0d585066304c79a92b5ddb
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbscreen.h')
0 files changed, 0 insertions, 0 deletions