[Tickets #12502] Imported iCal V2.0 all-day event is displayed as two-day-event in event details
noreply at bugs.horde.org
noreply at bugs.horde.org
Thu Jul 25 12:02:22 UTC 2013
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/12502
------------------------------------------------------------------------------
Ticket | 12502
Created By | neumann at softwareloft.de
Summary | Imported iCal V2.0 all-day event is displayed as
| two-day-event in event details
Queue | Kronolith
Version | 4.1.2
Type | Bug
State | Unconfirmed
Priority | 1. Low
Milestone |
Patch | 1
Owners |
------------------------------------------------------------------------------
neumann at softwareloft.de (2013-07-25 12:02) wrote:
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 at 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)
neumann at softwareloft.de (2013-07-25 12:02) uploaded: Event-patch.txt
http://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=Event-patch.txt&ticket=12502&fn=%2FEvent-patch.txt
More information about the bugs
mailing list