mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user