Created attachment 147472 [details] the KOrganizer window that demonstrates this bug SUMMARY If I create a recurring event in UTC and it goes past a DST boundary, korganizer will use the tz offset at the first instance of that event as the displayed start/end time for *all* recurrences of that event. STEPS TO REPRODUCE 1. Switch system timezone to America/Toronto 2. Create an event that starts at 2022-02-26 5:00 PM and ends at 2022-02-26 5:00 PM with *timezone set to UTC*, and repeats every week 3. Take a look at the Feb 26 instance and Mar 19 instance in Agenda/Week view OBSERVED RESULT In 3, the block of the Mar 19 instance is aligned with "1pm-2pm," but the start and end time on the block is "12:00 P.M. - 1:00 P.M." Clicking on the event and the details docker on the left sidebar says "Time: 12:00 P.M. - 1:00 P.M." EXPECTED RESULT In 3, the block of the Mar 19 instance is aligned with "1pm-2pm," the start and end time on the block should be "1:00 P.M. - 2:00 P.M." Clicking on the event and the details docker on the left sidebar should say "Time: 1:00 P.M. - 2:00 P.M." SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Linux 5.16.12-gentoo-x86_64 (available in About System) KDE Plasma Version: 5.24.3 KDE Frameworks Version: 5.91.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION
Git commit fb00f08d56b65c63541af204a77322a77600f6ee by Daniel Vrátil. Committed on 24/08/2023 at 18:17. Pushed by dvratil into branch 'release/23.08'. IncidenceFormatter: fix start/end dt of recurrent event crossing DST This fixes a particular case when a recurrent event is created during DST but a subsequent recurrence occurs after DST ends. The formatter would still show the start/end time of the occurrence as if the DST still applied. This is best noticed when system timezone does not observe DST, but the displayed incidence from a timezone uses DST. This change replaces a custom (broken) algorithm by the one provided by KCalendarCore to obtain start/end datetime of an incidence on a particular date, which is actually correct. Related: bug 460186 FIXED-IN: 5.24.1 M +3 -17 src/incidenceformatter.cpp https://invent.kde.org/pim/kcalutils/-/commit/fb00f08d56b65c63541af204a77322a77600f6ee
Reproduced on Ubuntu 24.04.1, Kontact version 5.24.5 (23.08.5). The event is in Asia/Hong_Kong and the machine is in Europe/London.
Created attachment 176091 [details] The recurring event between 19:00 - 21:15 Asia/Hong_Kong
Created attachment 176092 [details] The window showing the event at the wrong time, with the wrong description as well The event is at 19:00 - 21:15 Asia/Hong_Kong time, which is 11:00 - 13:15 in Europe/London. However, it is shown as 12:00 - 14:15 in the timeline, and the summary on the left shows it is at 03:00 - 05:15.