Bug 420468 - All new events are 24-hour long events, selected time ignored
Summary: All new events are 24-hour long events, selected time ignored
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kwidgetsaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.71.0
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
: 424074 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-04-23 16:32 UTC by Clinton
Modified: 2020-07-12 20:43 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A demonstration of a new event wrongly spanning the day. (1.56 MB, video/mp4)
2020-04-23 16:32 UTC, Clinton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clinton 2020-04-23 16:32:49 UTC
Created attachment 127801 [details]
A demonstration of a new event wrongly spanning the day.

I've freshly purged and installed KOrganizer, the KDE-PIM packages, Akonadi, etc. and set up a WebDAV account to my NextCloud account.

All new events I create end up going from 12:PM to 12:AM. This happens in KOrganizer and the Kontact KPart. It happens regardless of whether or not the event is created by dragging within the Calendar directly, or by creating a New Event using the pull-down menu. The time range selected on the Calendar, or in the dialogue box is ignored.

If I make events using the Calendar app within NextCloud, or using a different WebDAV client (i.e. my phone app), then the events are displayed properly.

I've attached a video of the bug.



SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 5.18
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1
Comment 1 gjditchfield 2020-06-14 12:40:27 UTC
This may be related to bug 410167.  Which locale do you use?  Does the problem still occur if you switch to American English, for example by executing "LANG=en_us.UTF-8" in Konsole?
Comment 2 Clinton 2020-06-14 13:17:17 UTC
Yes! This is the problem. I guess I'll pretend to be a Yank for a little while until the other bug is closed. Feel free to mark as duplicate. :)

At least I can use my calendar again!
Comment 3 gjditchfield 2020-06-14 13:29:58 UTC

*** This bug has been marked as a duplicate of bug 410167 ***
Comment 4 Albert Astals Cid 2020-07-02 20:46:48 UTC
Git commit 37c9ebe699e33f84700489982da301bdf8727bd3 by Albert Astals Cid, on behalf of Glen Ditchfield.
Committed on 02/07/2020 at 20:46.
Pushed by aacid into branch 'master'.

Fix KTimeComboBox for locales with unusual characters in formats

KTimeComboBox creates an edit mask by replacing the AM/PM indicator in
a formatted time with 'a' ("optional alphabetic") mask characters.
This does not work for locales that use punctuation in the indicator, such
as the current en_CA format "9:00 A.M.".  This patch uses mask character
'x' ("optional non-blank").

The current fr_CA time format contains an embedded 'h':  "9 h 00".  'h' is
an edit mask character ("optional hexadecimal digit"), so the generated
mask rejects properly-formatted times.  This patch escapes all characters
that are not supposed to be mask characters.

Credit to Filipus Klutiero for a detailed explanation of the errors.
```
Related: bug 405857, bug 406240, bug 409867, bug 410167, bug 411820, bug 412506
```

M  +52   -3    autotests/ktimecomboboxtest.cpp
M  +5    -0    autotests/ktimecomboboxtest.h
M  +26   -23   src/ktimecombobox.cpp

https://invent.kde.org/frameworks/kwidgetsaddons/commit/37c9ebe699e33f84700489982da301bdf8727bd3
Comment 5 odzinic 2020-07-12 20:43:41 UTC
*** Bug 424074 has been marked as a duplicate of this bug. ***