Clock does not honour daylight changes
Submitted by drj..@..il.com
Assigned to Xfce Bug Triage
Description
Its an odd one. I am based in Ireland. We had time changed just recently. Daylight changes. And this is how issue got triggered.
Once time changed i noticed one hour difference.
Restarted X, relogged into console, same story. One hour difference. Where does XFCE4 Clock is taking its data zone info from?
I realised i had wrong time zone. I changed it to dublin time zone. It did not change much, because I am in UTC zone as is.
I am gentoo user. And I am positively sure that my clock settings are set up correctly. (ntp syncronised, and 'date' command from console is set up correctly and shows correct time) After clock changed - i have Xfce clock one hour behind. I installed Xclock for shit and giggles, and it worked just fine. It shows time correct under my user.
Killing Xorg and starting 'startxfce' did not help.(startxfce is started as user from console) I did not restart machine, because I wanted to have reliable way to recreate issue in case someone asked to reproduce problem.
I realised i had wrong time zone(i think it was set to UTC and not to my time zone). I changed it to dublin time zone. It did not change much, because I am in UTC zone as is.I realised i had wrong time zone. I changed it to dublin time zone.
(none)dimko's Desktop /home/dimko # hwclock -r --localtime 2020-03-31 15:35:46.140282+01:00 (none)dimko's Desktop /home/dimko # hwclock -r 2020-03-31 16:35:53.734048+01:00
timedatectl Local time: Tue 2020-03-31 16:36:47 IST Universal time: Tue 2020-03-31 15:36:47 UTC RTC time: Tue 2020-03-31 15:36:48 Time zone: Europe/Dublin (IST, +0100) System clock synchronized: no NTP service: inactive RTC in local TZ: no
Now it's were it gets odd.
Killing Xorg and starting new session of xfce under root clock app works just fine!
from root console timedatectl Local time: Tue 2020-03-31 16:39:28 IST Universal time: Tue 2020-03-31 15:39:28 UTC RTC time: Tue 2020-03-31 15:39:29 Time zone: Europe/Dublin (IST, +0100) System clock synchronized: no NTP service: inactive RTC in local TZ: no
echo LC_TIME - produced no result under root or user.
and i would not be a gentoo user if I did not fuck with things.
So I deleted app from panel. Added it back. And my jaw dropped.Correct time is now seen.
Bug still remains I am afraid, but its rather tricky to reproduce for average Joe. I could, but I am too lazy. Devs, please keep me lazy and solve this annoying little bug!
Version: Unspecified