Fixed DnD of all-day events

Fixes #1598
This commit is contained in:
Francis Lachapelle
2012-09-26 15:18:09 -04:00
parent 75328b09a6
commit d77f6be450
+4 -4
View File
@@ -67,12 +67,8 @@
co = [self clientObject];
event = (iCalEvent *) [[self clientObject] occurence];
ud = [[context activeUser] userDefaults];
tz = [ud timeZone];
start = [event startDate];
[start setTimeZone: tz];
end = [event endDate];
[end setTimeZone: tz];
if ([event isAllDay])
{
@@ -87,6 +83,10 @@
}
else
{
ud = [[context activeUser] userDefaults];
tz = [ud timeZone];
[start setTimeZone: tz];
[end setTimeZone: tz];
newStart = [start dateByAddingYears: 0 months: 0
days: [daysDelta intValue]
hours: 0 minutes: [startDelta intValue]