google-code-export / webical

Automatically exported from code.google.com/p/webical
GNU General Public License v3.0
1 stars 1 forks source link

Error in from and to dates #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What happened?
Webical sees an end date different from iCal.

What steps will reproduce the problem?
1. Create an iCal event from 23.00 to 00.00 the same day
2. Webical will show it from 23.00 until 00.00 the next day

See screenshot for details.

.ics file will follow.

Original issue reported on code.google.com by d...@zorginitiatieven.nl on 18 Feb 2008 at 10:07

Attachments:

GoogleCodeExporter commented 9 years ago
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:-//Apple Inc.//iCal 3.0//EN
BEGIN:VTIMEZONE
TZID:Europe/Amsterdam
BEGIN:STANDARD
DTSTART:19961027T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:19810329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
UID:0499AAC9-80AA-4DF9-A695-077B9E9C7181
DTSTART;TZID=Europe/Amsterdam:20080215T230000
DTEND;TZID=Europe/Amsterdam:20080216T000000
CREATED:20080218T220254Z
DTSTAMP:20080218T220257Z
SEQUENCE:2
SUMMARY:lLALALALALA
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR

Original comment by d...@zorginitiatieven.nl on 18 Feb 2008 at 10:09

GoogleCodeExporter commented 9 years ago
Did you only experience this with recurring events or with 'normal' events as 
well? I
don't have access to an iCal server ATM, will have to figure out a way to 
reproduce
this for myself...

Original comment by ivovando...@gmail.com on 18 Feb 2008 at 10:47

GoogleCodeExporter commented 9 years ago
This is not a recurring event. The RRULE you see is attached to the VTimeZone, 
not the VEvent.

You can reproduce it by just using the VEvent:

BEGIN:VEVENT
UID:0499AAC9-80AA-4DF9-A695-077B9E9C7181
DTSTART;TZID=Europe/Amsterdam:20080215T230000
DTEND;TZID=Europe/Amsterdam:20080216T000000
CREATED:20080218T220254Z
DTSTAMP:20080218T220257Z
SEQUENCE:2
SUMMARY:lLALALALALA
TRANSP:OPAQUE
END:VEVENT

Original comment by d...@zorginitiatieven.nl on 19 Feb 2008 at 8:18

GoogleCodeExporter commented 9 years ago
Basically the problem is:

Webical sees 20080216T000000 as at the *end* of the day, whereas iCal sees is 
as the *start* of the day.

This may be a problem in the ical4j DateTime class, but I did not dive into it.

Original comment by d...@zorginitiatieven.nl on 19 Feb 2008 at 8:20

GoogleCodeExporter commented 9 years ago
You're absolutely right, I shouldn't try to figure out bugs so late in the 
evening :). 
I'll try to locate the source of the bug this weekend, shouldn't be to hard to 
find.
I don't think this lies with ical4j, it's more probable that I made a mistake 
somewhere.

Original comment by ivovando...@gmail.com on 19 Feb 2008 at 8:56

GoogleCodeExporter commented 9 years ago

Original comment by ivovando...@gmail.com on 24 Feb 2008 at 6:00