6.0.0-alpha14
7/3/25

[#12502] Imported iCal V2.0 all-day event is displayed as two-day-event in event details
Summary Imported iCal V2.0 all-day event is displayed as two-day-event in event details
Queue Kronolith
Queue Version 4.1.2
Type Bug
State Duplicate
Priority 1. Low
Owners
Requester neumann (at) softwareloft (dot) de
Created 07/25/2013 (4361 days ago)
Due
Updated 07/25/2013 (4361 days ago)
Assigned
Resolved 07/25/2013 (4361 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
07/25/2013 02:57:50 PM Michael Rubinsky Comment #2
State ⇒ Duplicate
Reply to this comment
07/25/2013 12:02:22 PM neumann (at) softwareloft (dot) de Comment #1
Priority ⇒ 1. Low
New Attachment: Event-patch.txt Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ Imported iCal V2.0 all-day event is displayed as two-day-event in event details
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
An imported iCal V.2.0 single-day all-day event is correctly handled 
and displayed as a single-day all-day event in overviews.
But in the event details the "to" field shows the next day.

Versions:
  - horde 5.1.2
  - kronolith 4.1.2

Reproduce:
  - Add an all-day event with
   from: 07/16/2013
   to: 07/16/2013
  - Export to ICS file.
  - Remove event.
  - Import the ICS file.
  - In month view the event is displayed as single-day event on 07/16/2013.
  - Click on event => "to" field shows: 07/17/2013

Exported ICS file:

BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Test Calendar
PRODID:-//The Horde Project//Horde iCalendar Library//EN
BEGIN:VEVENT
DTSTART;VALUE=DATE:20130716
DTEND;VALUE=DATE:20130717
X-FUNAMBOL-ALLDAY:1
DTSTAMP:20130725T110318Z
UID:20130724134430.Nh-0q2CpvAWHonBVHyjM3g7@webmail.intranet.xxx
CREATED:20130724T114430Z
LAST-MODIFIED:20130725T110309Z
SUMMARY:Test one day
CLASS:PUBLIC
STATUS:CONFIRMED
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR

After realizing that the export to iCal adds one second to the date, I 
fixed the problem by adding one line to kronolith/lib/Event.php:
     --$this->end->sec;
(see attached patch)


Saved Queries