Summary: | x11/plasma5-plasma: time widget not taking into account time zones | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | sebastienmainand |
Component: | Individual Port(s) | Assignee: | freebsd-kde (group) <kde> |
Status: | Closed Works As Intended | ||
Severity: | Affects Only Me | CC: | jhb, mikael, rakuco, tcberner, tcberner |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | amd64 | ||
OS: | Any |
Description
sebastienmainand
2015-06-10 12:44:03 UTC
There is no port with this name. Can you please clarify? Assign to the right maintainer. Tobias, do you know if this is still a valid bug? (In reply to Raphael Kubo da Costa from comment #2) First of all sorry, I totally missed this bug report. I tested it here, and right-clicking on the digital-clock in the panel and selecting "Digital Clock Settings" and choosing your wanted time zone(s) in the "Timezones"-tab should work now (plasma 5.5.4). I think that was an upstream issue. But I will have to check whether it picks up the correct local time zone by default too. I've had the same problem and I think it depends on whether /etc/localtime is a symlink to /usr/share/zoneinfo/Europe/Paris or a regular file. Mine is a symlink and everything works fine. Yes Mikael is right, looking at qt's code [1] it is indeed necessary that /etc/localtime [1] is a symlink to a timezone file for Qt to determine it. [1] https://github.com/qt/qtbase/blob/990969655c5fb4d03682e96df9b12101f5ee9815/src/corelib/tools/qtimezoneprivate_tz.cpp#L952 This isn't really correct as the default behavior of FreeBSD is to use 'cp' for /etc/localtime instead of a symlink. Qt should instead learn about /var/db/zoneinfo. In that blob of Qt code from the URL, it already checks for '/etc/timezone' on Debian, the same check would work if it also checked for /var/db/zoneinfo on FreeBSD. A commit references this bug: Author: jhb Date: Wed Jun 13 17:02:32 UTC 2018 New revision: 472335 URL: https://svnweb.freebsd.org/changeset/ports/472335 Log: Recognize timezones on FreeBSD for the default install. By default, FreeBSD copies the current timezone database to /etc/localtime and stores the name of the symlink in /var/db/zoneinfo. Qt expects /etc/localtime to be a symlink and uses the symlink's target to infer the name of the default timezone. The existing code in Qt includes some workarounds for Linux distributions that also copy the current timezone to /etc/localtime by checking for files that contain the name of the timezone. Add a similar check for /var/db/zoneinfo on FreeBSD. PR: 200763 Reviewed by: tcberner Differential Revision: https://reviews.freebsd.org/D15792 Changes: head/devel/qt5-core/Makefile head/devel/qt5-core/files/patch-src_corelib_tools_qtimezoneprivate_tz.cpp |