mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-26 22:05:23 +00:00
Monotone-Parent: 8a5f1ab2b6e48cb383ec88a048e8b1985640a5ec
Monotone-Revision: 1beab6f7161f1ff90581edaf85291cb4aa19c519 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-07T16:27:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -113,18 +113,16 @@
|
||||
unsigned minutes;
|
||||
|
||||
s = [self queryParameterForKey:@"dur"];
|
||||
if(s && [s length] > 0) {
|
||||
if ([s length] > 0)
|
||||
minutes = [s intValue];
|
||||
}
|
||||
else {
|
||||
else
|
||||
minutes = 60;
|
||||
}
|
||||
|
||||
utc = [NSTimeZone timeZoneWithName: @"GMT"];
|
||||
lStartDate = [self selectedDate];
|
||||
lStartDate = [self newStartDate];
|
||||
[lStartDate setTimeZone: utc];
|
||||
lEndDate = [lStartDate dateByAddingYears: 0 months: 0 days: 0
|
||||
hours: 0 minutes: minutes seconds: 0];
|
||||
lEndDate = [lStartDate dateByAddingYears: 0 months: 0 days: 0
|
||||
hours: 0 minutes: minutes seconds: 0];
|
||||
|
||||
stamp = [NSCalendarDate calendarDate];
|
||||
[stamp setTimeZone: utc];
|
||||
@@ -348,10 +346,10 @@
|
||||
ical = [[self clientObject] contentAsString];
|
||||
if ([ical length] == 0) /* a new appointment */
|
||||
ical = [self iCalStringTemplate];
|
||||
|
||||
|
||||
[self setICalString:ical];
|
||||
[self loadValuesFromAppointment: [self appointmentFromString: ical]];
|
||||
|
||||
|
||||
if (![self canEditComponent]) {
|
||||
/* TODO: we need proper ACLs */
|
||||
return [self redirectToLocation: [self completeURIForMethod: @"../view"]];
|
||||
|
||||
Reference in New Issue
Block a user