Bug 410167 - Cannot change or enter time for calendar entry
Summary: Cannot change or enter time for calendar entry
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kwidgetsaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
: 428184 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-07-24 21:45 UTC by David Bate
Modified: 2020-10-25 16:54 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Kontact add appointment bug (60.20 KB, image/png)
2019-10-18 01:20 UTC, David Bate
Details
Kontact appointment bug pic 2 (59.74 KB, image/png)
2019-10-18 01:20 UTC, David Bate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Bate 2019-07-24 21:45:53 UTC
SUMMARY

Cannot change or enter times in calendar for new entries or to update.  Always reverts to 12:00 am.

STEPS TO REPRODUCE
1. create new calendar
2. Select date and time
3. save

OBSERVED RESULT

Will revert to 12:00 am.  Cannot change.

EXPECTED RESULT

Should save with the selected time.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon
(available in About System)
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.60.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
Comment 1 David Bate 2019-10-18 01:16:10 UTC
Have upgraded to: 
Operating System: Kubuntu 19.10
KDE Plasma Version: 5.17.0
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

Still same issue.  When trying to set times, they revert back to midnight when saved.
Comment 2 David Bate 2019-10-18 01:20:27 UTC
Created attachment 123302 [details]
Kontact add appointment bug
Comment 3 David Bate 2019-10-18 01:20:57 UTC
Created attachment 123303 [details]
Kontact appointment bug pic 2
Comment 4 David Bate 2019-10-20 16:45:33 UTC
This occurs with either the local calendar or Gmail calendar, on kubuntu or KDE-Neon, multiple reinstalls and devices.
Comment 5 Isaac Wismer 2019-10-21 15:55:12 UTC
*** Bug 411820 has been marked as a duplicate of this bug. ***
Comment 6 Borden 2019-11-18 06:03:54 UTC
Happening to me too. Debian Buster. What can I do to help?
Comment 7 Vladislav Vorobiev 2019-12-04 23:59:44 UTC
It's the same here, debian Buster.
Debian sid also...
Comment 8 Vladislav Vorobiev 2019-12-05 00:00:17 UTC
Calendar and Tasks are unusable.
Comment 9 Borden 2019-12-08 20:39:43 UTC
I think the problem has to do with time zones. I went into my System Settings -> Regional Settings -> Date & Time, changed the time zone and then changed it back. The problem seems to be better now.

I think somewhere along the pike KOrg couldn't read the time zone values properly, so it would mess up calculating event times and then default to 00:00 - 23:59.

See if this works for you.
Comment 10 Borden 2019-12-12 02:13:07 UTC
I stand corrected. The problem's back. Fix didn't work.
Comment 11 David Bate 2019-12-12 02:23:21 UTC
What Region do you have set?  

Make sure the time format is set to United States (en_us).  My region is set for Canada, and the problem comes up, but if i set the time format to US, it works.

I think some of the language/region files are not configured right.  Canada and US has the same time format and zones, but yet it has issues with the Canadian time setting.
Comment 12 Borden 2019-12-16 15:10:48 UTC
That's the fix. The Canadian locale is broken and the error messages useless.
Comment 13 Brad Lavenham 2019-12-18 10:37:42 UTC
I can confirm this. I'm in Canada and ran into this bug yesterday on Fedora 31. To determine if the problem is with KDE itself or just Fedora's build, I installed Kubuntu on another computer and tried again. Exact same issue. However, if I run the following in Konsole:

  LANG=en_US.UTF-8; korganizer

then I can set up events and assign the desired time to them.
Comment 14 gjditchfield 2020-05-22 02:28:39 UTC
*** Bug 406240 has been marked as a duplicate of this bug. ***
Comment 15 gjditchfield 2020-05-22 02:29:30 UTC
*** Bug 412506 has been marked as a duplicate of this bug. ***
Comment 16 gjditchfield 2020-06-14 13:29:58 UTC
*** Bug 420468 has been marked as a duplicate of this bug. ***
Comment 17 Philippe Cloutier 2020-06-30 02:03:07 UTC
(In reply to B Rhodes from comment #12)
> That's the fix. The Canadian locale is broken and the error messages useless.

Could you clarify which error messages you refer to?
Comment 18 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 411820, bug 412506, bug 420468
```

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 19 gjditchfield 2020-10-25 16:54:29 UTC
*** Bug 428184 has been marked as a duplicate of this bug. ***