Summary: | Digital and Analog Clock display wrong local time (wrong timezone?) | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Igor Tarasov <tarasov.igor> |
Component: | Digital Clock widget | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED UPSTREAM | ||
Severity: | major | CC: | belov2, blackst0ne.ru, freeman.aka.ahmed, gokhangndz, kde, kde, kolubat, mishanstvo, tonal.promsoft, victorenator, zviad.kikvidze |
Priority: | NOR | ||
Version First Reported In: | 5.8.0 | ||
Target Milestone: | 1.0 | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Digital (-6 hours) and analog (-3 hours) clock
Fix digital clock offset |
Description
Igor Tarasov
2016-10-05 18:46:22 UTC
I have the same issue. My timezone is Europe/Minsk +03. Analog clock shows UTC time (-3 hours). Digital clock shows time in timezone -03 (-6 hours). Created attachment 101495 [details]
Digital (-6 hours) and analog (-3 hours) clock
Created attachment 101498 [details]
Fix digital clock offset
KDE Plasma 5.6.5 KDE Frameworks 5.23.0 Qt 5.5.1 h@le5530:~$ date Ср окт 12 15:23:40 +05 2016 h@le5530:~$ cat ~/.kde/share/config/ktimezonedrc [TimeZones] LocalZone=Asia/Yekaterinburg ZoneinfoDir=/usr/share/zoneinfo Zonetab=/usr/share/zoneinfo/zone.tab ZonetabCache= h@le5530:~$ timedatectl Local time: Ср 2016-10-12 15:24:33 +05 Universal time: Ср 2016-10-12 10:24:33 UTC RTC time: Ср 2016-10-12 10:24:33 Time zone: Asia/Yekaterinburg (+05, +0500) Network time on: yes NTP synchronized: yes RTC in local TZ: no digital clock show 5:24 - 10 hours, because timezone +5 patch of VIC fixed time in digital clock panel, but not fixed in hover box, if selected more than one timezone Urgh, yeah - your patch is right. It just needs to be in Tooltip.qml too Bug also in DataEngine "time" / DataSource "Local" / key "Offset" is always 0 (Zero). Edit: Your patch isn't universally right - it's making mine (which was previously correct) off. I'll try and look into it, and ideally just move all this logic out of the JS space (In reply to vic from comment #6) > Bug also in DataEngine "time" / DataSource "Local" / key "Offset" is always > 0 (Zero). https://bugreports.qt.io/browse/QTBUG-53071 "QTimeZone mishandles tzdata 2016b and later in Russia, Kazakhstan" So with that, is everything fine? Bug only in Qt. My patch is a temporary workaround for numeric timezones as Europe/Minsk, Europe/Samara, Asia/Yekaterinburg and etc. Close it! I have exactly the same situation on my Fedora 24. Timezone is Asia/Tbilisi. Fix is in Qt 5.6.2, 5.7.1 If you still have the problem after upgrading to those Qt versions please reopen this bug. *** Bug 371198 has been marked as a duplicate of this bug. *** *** Bug 370408 has been marked as a duplicate of this bug. *** *** Bug 370989 has been marked as a duplicate of this bug. *** *** Bug 371401 has been marked as a duplicate of this bug. *** *** Bug 371512 has been marked as a duplicate of this bug. *** *** Bug 373709 has been marked as a duplicate of this bug. *** When Qt version upgraded to 5.7.1 to the Neon/user? |