mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-06 09:19:21 +00:00
Monotone-Parent: 886f71d2861cb6d59b81ebbddad0f7edee83e3c7
Monotone-Revision: 8e3ccd6bdd643adbebe091bde0df46f1f37150f4 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-01-07T18:32:24 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
79d2eb30dd
commit
8ca1f8a614
3 files changed
+37
-17
No files matched your search
@@ -1,3 +1,16 @@
|
|||||||
|
2009-01-07 Francis Lachapelle <flachapelle@inverse.ca>
|
||||||
|
|
||||||
|
* UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
|
||||||
|
-_handleCustomRRule:]): set the proper timezone for the end date.
|
||||||
|
([UIxComponentEditor -_loadRRules]): idem.
|
||||||
|
|
||||||
|
* UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor
|
||||||
|
-saveAction]): for recurrent events with an end date, the method
|
||||||
|
_adjustRecurrentRules must be called unconditionally. This fixes
|
||||||
|
the missing occurence on the last day.
|
||||||
|
([UIxAppointmentEditor -_adjustRecurrentRules]): fixed adjustment
|
||||||
|
of end date by using the proper timezone.
|
||||||
|
|
||||||
2009-01-07 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2009-01-07 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
* SoObjects/SOGo/NSString+Utilities.m ([NSString
|
* SoObjects/SOGo/NSString+Utilities.m ([NSString
|
||||||
@@ -6,13 +19,6 @@
|
|||||||
algorithm used in jsonRepresentation, the latter is now calling
|
algorithm used in jsonRepresentation, the latter is now calling
|
||||||
this new method.
|
this new method.
|
||||||
|
|
||||||
2009-01-07 Francis Lachapelle <flachapelle@inverse.ca>
|
|
||||||
|
|
||||||
* UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor
|
|
||||||
-saveAction]): for recurrent events with an end date, the method
|
|
||||||
_adjustRecurrentRules must be called unconditionally. This fixes
|
|
||||||
the missing occurence on the last day.
|
|
||||||
|
|
||||||
2008-01-06 Ludovic Marcotte <lmarcotte@inverse.ca>
|
2008-01-06 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||||
|
|
||||||
* SoObjects/Appointments/SOGoCalendarComponent.m
|
* SoObjects/Appointments/SOGoCalendarComponent.m
|
||||||
|
|||||||
@@ -310,13 +310,16 @@
|
|||||||
if (untilDate)
|
if (untilDate)
|
||||||
{
|
{
|
||||||
// The until date must match the time of the start date
|
// The until date must match the time of the start date
|
||||||
untilDate = [untilDate initWithYear: [untilDate yearOfCommonEra]
|
NSCalendarDate *date;
|
||||||
month: [untilDate monthOfYear]
|
|
||||||
day: [untilDate dayOfMonth]
|
date = [[event startDate] copy];
|
||||||
hour: [[event startDate] hourOfDay]
|
[date setTimeZone: [[context activeUser] timeZone]];
|
||||||
minute: [[event startDate] minuteOfHour]
|
untilDate = [untilDate dateByAddingYears:0
|
||||||
second: 0
|
months:0
|
||||||
timeZone: [untilDate timeZone]];
|
days:0
|
||||||
|
hours:[date hourOfDay]
|
||||||
|
minutes:[date minuteOfHour]
|
||||||
|
seconds:0];
|
||||||
[rule setUntilDate: untilDate];
|
[rule setUntilDate: untilDate];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
#import <NGCards/NSCalendarDate+NGCards.h>
|
#import <NGCards/NSCalendarDate+NGCards.h>
|
||||||
#import <NGObjWeb/SoSecurityManager.h>
|
#import <NGObjWeb/SoSecurityManager.h>
|
||||||
#import <NGObjWeb/NSException+HTTP.h>
|
#import <NGObjWeb/NSException+HTTP.h>
|
||||||
|
#import <NGObjWeb/WOApplication.h>
|
||||||
#import <NGObjWeb/WORequest.h>
|
#import <NGObjWeb/WORequest.h>
|
||||||
#import <NGExtensions/NSCalendarDate+misc.h>
|
#import <NGExtensions/NSCalendarDate+misc.h>
|
||||||
#import <NGExtensions/NSObject+Logs.h>
|
#import <NGExtensions/NSObject+Logs.h>
|
||||||
@@ -340,8 +341,12 @@ iRANGE(2);
|
|||||||
}
|
}
|
||||||
else if ([rule untilDate])
|
else if ([rule untilDate])
|
||||||
{
|
{
|
||||||
|
NSCalendarDate *date;
|
||||||
|
|
||||||
|
date = [[rule untilDate] copy];
|
||||||
|
[date setTimeZone: [[context activeUser] timeZone]];
|
||||||
[self setRange1: @"2"];
|
[self setRange1: @"2"];
|
||||||
[self setRange2: [[rule untilDate] descriptionWithCalendarFormat: @"%Y-%m-%d"]];
|
[self setRange2: [date descriptionWithCalendarFormat: @"%Y-%m-%d"]];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
[self setRange1: @"0"];
|
[self setRange1: @"0"];
|
||||||
@@ -1387,8 +1392,14 @@ RANGE(2);
|
|||||||
// Repeat until date
|
// Repeat until date
|
||||||
else if (range == 2)
|
else if (range == 2)
|
||||||
{
|
{
|
||||||
[theRule setUntilDate: [NSCalendarDate dateWithString: [self range2]
|
NSCalendarDate *date;
|
||||||
calendarFormat: @"%Y-%m-%d"]];
|
SOGoUser *user;
|
||||||
|
|
||||||
|
user = [context activeUser];
|
||||||
|
date = [NSCalendarDate dateWithString: [self range2]
|
||||||
|
calendarFormat: @"%Y-%m-%d"
|
||||||
|
locale: [[WOApplication application] localeForLanguageNamed: [user language]]];
|
||||||
|
[theRule setUntilDate: date];
|
||||||
}
|
}
|
||||||
// No end date.
|
// No end date.
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user