Monotone-Parent: 14183e9d9367b240b6e0585031a87772c952285a

Monotone-Revision: 6550d093f75808cf03c8781a80f346a0cedf836a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-02-11T02:36:43
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-02-11 02:36:43 +00:00
parent e350c7b90b
commit cceeebc234
21 changed files with 1530 additions and 197 deletions
+12 -5
View File
@@ -244,7 +244,7 @@
NSCalendarDate *startDate, *endDate;
NSString *duration;
NSTimeZone *timeZone;
unsigned int minutes;
unsigned int total, hours, minutes;
SOGoObject <SOGoComponentOccurence> *co;
SOGoUserDefaults *ud;
@@ -258,14 +258,21 @@
&& [co isKindOfClass: [SOGoCalendarComponent class]])
{
startDate = [self newStartDate];
duration = [self queryParameterForKey:@"dur"];
duration = [self queryParameterForKey:@"duration"];
if ([duration length] > 0)
minutes = [duration intValue];
{
total = [duration intValue];
hours = total / 100;
minutes = total % 100;
}
else
minutes = 60;
{
hours = 1;
minutes = 0;
}
endDate
= [startDate dateByAddingYears: 0 months: 0 days: 0
hours: 0 minutes: minutes seconds: 0];
hours: hours minutes: minutes seconds: 0];
}
else
{