Zren / plasma-applet-eventcalendar

https://store.kde.org/p/998901/
465 stars 92 forks source link

Tooltip Time Zone oddities involving DST #280

Open DonKatsu opened 2 years ago

DonKatsu commented 2 years ago

I noticed this the day before CDT was to start back in March, and it's happening again on the change back to CST.

In this example, JST should be 07:16. If I change system time to be an hour ahead or behind, the tooltip JST reflects that as well. local

I have time set to "Default (C)" in Formats to get 24 hour time system wide, but setting it to No change (US) still shows the incorrect JST time in the tooltip.

Changing the system time zone to JST gives the correct time in the main field as well as in the tooltip time zone field.

Setting the date back one day to November 5th shows the correct JST time in the tooltip. local-one-day-back If I set the date to the 7th or beyond without changing the time, the JST tooltip goes up two hours instead. local-one-day-ahead If I set back to March 12th or before, I get the second above result. March 13th, it goes up three hours. March 14th and beyond, it shows the correct JST time. Changes to system time are reflected on the tooltip time in these cases as well. But it syncs up and resolves itself once 2am hits and the time changes officially.

EDIT: Now that I think about it, Event Calendar is probably basing tooltip times off system times so that behavior is to be expected.

Here's how it's fine now that DST has changed. image Changing the date back to November 6th or before without touching the time drops JST back an hour.

Thinking even more, I guess I figured out the TL;DR. Seems like event calendar is accounting for DST too early.