Bug 388322

Summary: Digital Clock Plasmoid ignores timezone settings and displays wrong time
Product: [Plasma] plasmashell Reporter: Mofusi <mofusi>
Component: Digital ClockAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, kde, kde, nate, simonandric5
Priority: NOR    
Version: 5.11.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Date & time settings
Time Zone settings

Description Mofusi 2017-12-29 13:07:18 UTC
Created attachment 109572 [details]
Date & time settings

OS: Manjaro Linux
KDE Plasma version: 5.11.4

Digital Clock Plasmoid displays wrong time, when I changed my local timezone (from Europe/Berlin to Asia/Yekaterinburg).
Login and lock screen, analog clock plasmoid and Date & Time system settings display correct time. 

Output of `date` command:
Fri 29 Dec 18:03:03 +05 2017

Output of `timedatectl` command:
                      Local time: Fri 2017-12-29 18:03:22 +05
                  Universal time: Fri 2017-12-29 13:03:22 UTC
                        RTC time: n/a
                       Time zone: Asia/Yekaterinburg (+05, +0500)
       System clock synchronized: yes
systemd-timesyncd.service active: no
                 RTC in local TZ: no

Output of `ls -l /etc/localtime` command:
/etc/localtime -> ../usr/share/zoneinfo/Asia/Yekaterinburg

But the digital clock plasmoid displays 14:03, the time in Europe/Berlin timezone.
Comment 1 Kai Uwe Broulik 2018-01-02 18:32:18 UTC
Since lock screen and others are using the same datasource as digital clock, does restarting plasmashell help? Did you perhaps change the time zone in digital clock settings from "Local" to "Berlin" so it wouldn't update?
Comment 2 Mofusi 2018-01-03 13:44:44 UTC
Created attachment 109652 [details]
Time Zone settings
Comment 3 Mofusi 2018-01-03 13:45:08 UTC
No, restarting doesn't help.

It looks like the local timezone is not really changed. I selected Asia/Yekaterinburg, but System Settings module says "Current local time zone: Europe/Berlin (LMT)" (see time zone settings screenshot).

And the `~/.config/ktimezonedrc' contains the following strings:
[TimeZones]
LocalZone=Europe/Berlin
ZoneinfoDir=/usr/share/zoneinfo
Zonetab=/usr/share/zoneinfo/zone.tab
Comment 4 David Edmundson 2018-01-20 21:43:06 UTC
The digital clock can display any other arbitrary timezone.

Does adding a new digital clock have the wrong time?
Can you check digital clock -> settings -> time zones.

It should have the top one checked (that says "Local") and no others.
Comment 5 Christoph Feck 2018-02-16 01:05:59 UTC
If you can provide the information requested in comment #4, please add it.
Comment 6 Patrick Silva 2018-02-20 14:35:37 UTC
cannot reproduce on Arch Linux, plasma 5.12.1.
Comment 7 Nate Graham 2018-02-20 14:48:33 UTC
Also cannot reproduce in Plasma 5.12.1 on Kubuntu 17.10. Assuming it's fixed; Mofusi, if you can reproduce after upgrading to Plasma 5.12.1 or greater, please re-open.