<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>411820</bug_id>
          
          <creation_ts>2019-09-11 14:09:11 +0000</creation_ts>
          <short_desc>Problems setting event start and end time</short_desc>
          <delta_ts>2020-07-02 21:40:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kwidgetsaddons</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Isaac Wismer">kdebugs</reporter>
          <assigned_to name="Christoph Feck">cfeck</assigned_to>
          <cc>gjditchfield</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>montel</cc>
          
          <cf_commitlink>https://invent.kde.org/frameworks/kwidgetsaddons/commit/37c9ebe699e33f84700489982da301bdf8727bd3</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1879507</commentid>
    <comment_count>0</comment_count>
    <who name="Isaac Wismer">kdebugs</who>
    <bug_when>2019-09-11 14:09:11 +0000</bug_when>
    <thetext>SUMMARY
When creating an event in the agenda view by double clicking on a time, by dragging a selection or by hitting the create new event button, no matter what the start and end times I set for the event, it always makes the event the whole day.

STEPS TO REPRODUCE
1. Click create new event
2. Add a title, and select a start and end time
3. Hit OK

OBSERVED RESULT
An event is created with the correct title, but the time is all day.

EXPECTED RESULT
The time to be what was specified when the event was created.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux repo versions
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
If I use the handles at the ends of the event after creating it, I can make it the correct time.
If I try to edit the time of an existing event using the edit dialog, the event doesn&apos;t change.

The calendar is synchronized from Nextcloud using CalDAV</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879511</commentid>
    <comment_count>1</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2019-09-11 14:29:12 +0000</bug_when>
    <thetext>I can&apos;t reproduce it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879618</commentid>
    <comment_count>2</comment_count>
    <who name="Isaac Wismer">kdebugs</who>
    <bug_when>2019-09-12 01:04:28 +0000</bug_when>
    <thetext>This also occurs on an iCal calendar imported from a file on disk. I also cannot set a time for the due date of a todo, I can only set the date.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879620</commentid>
    <comment_count>3</comment_count>
    <who name="Isaac Wismer">kdebugs</who>
    <bug_when>2019-09-12 01:10:18 +0000</bug_when>
    <thetext>I also get the following output to stdout when creating an event:

org.kde.pim.calendarview: Duplicate incidence detected. File a bug against the resource. collection= 39
org.kde.pim.calendarview: Duplicate incidence detected. File a bug against the resource. collection= 39
org.kde.pim.incidenceeditor: free slot calculation: invalid range. range(  0 ) / mSlotResolutionSeconds( 900 ) =  0
org.kde.pim.calendarview: Agenda::removeIncidence() Failed to remove  &quot;37d40518-66a7-4d6c-aa73-b4154f9abec6&quot;
org.kde.pim.calendarview: Agenda::removeIncidence() Failed to remove  &quot;37d40518-66a7-4d6c-aa73-b4154f9abec6&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886978</commentid>
    <comment_count>4</comment_count>
    <who name="Isaac Wismer">kdebugs</who>
    <bug_when>2019-10-21 15:55:12 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 410167 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1941425</commentid>
    <comment_count>5</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2020-07-02 20:46:48 +0000</bug_when>
    <thetext>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 &apos;master&apos;.

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 &apos;a&apos; (&quot;optional alphabetic&quot;) mask characters.
This does not work for locales that use punctuation in the indicator, such
as the current en_CA format &quot;9:00 A.M.&quot;.  This patch uses mask character
&apos;x&apos; (&quot;optional non-blank&quot;).

The current fr_CA time format contains an embedded &apos;h&apos;:  &quot;9 h 00&quot;.  &apos;h&apos; is
an edit mask character (&quot;optional hexadecimal digit&quot;), 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 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>