See ChangeLog

Monotone-Parent: 5af155533446328556c907456566939affd0ae8f
Monotone-Revision: 2684d8c1336cad3425d5075a447d817d5808948d

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-04-19T18:16:50
This commit is contained in:
Ludovic Marcotte
2012-04-19 18:16:50 +00:00
parent 0c0cbc19f0
commit ce77d78e27
4 changed files with 23 additions and 7 deletions
+13 -1
View File
@@ -2796,8 +2796,20 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
else
[event setDuration: @"PT1H"];
[self errorWithFormat: @"Importing event with no end date; setting duration to %@", [event duration]];
[self errorWithFormat: @"Importing event with no end date; setting duration to %@ for UID = %@", [event duration], [event uid]];
}
//
// We check for broken all-day events (like the ones coming from the "WebCalendar" tool) where
// the start date is equal to the end date. This clearly violates the RFC:
//
// 3.8.2.2. Date-Time End
// The value MUST be later in time than the value of the "DTSTART" property.
//
if ([event isAllDay] && [[event startDate] isEqual: [event endDate]])
{
[event setEndDate: [[event startDate] dateByAddingYears: 0 months: 0 days: 1 hours: 0 minutes: 0 seconds: 0]];
[self errorWithFormat: @"Fixed broken all-day event; setting end date to %@ for UID = %@", [event endDate], [event uid]];
}
if ([event recurrenceId])
{
// Event is an occurrence of a repeating event