Monotone-Parent: dd85bf5964ed0c3db1f8a221c4b661e16160f8fa

Monotone-Revision: 3b82be87d54654cef58e4b1e223610678824ba7a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-09-08T15:18:03
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-09-08 15:18:03 +00:00
parent 62ac990835
commit af300fc0da
3 changed files with 7 additions and 22 deletions

View File

@@ -1,5 +1,8 @@
2006-09-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.[hm]: removed the
"timeZone" ivar and its accessors.
* SoObjects/SOGo/SOGoObject.m ([SOGoObject -serverTimeZone]): new
centralized method returing the timezone configured in the
userdefaults db or "Canada/Eastern" if missing.

View File

@@ -41,12 +41,9 @@
@class NSString, NSArray, NSCalendarDate, NSException, NSMutableDictionary;
@class GCSFolder;
@class NSTimeZone;
@interface SOGoAppointmentFolder : SOGoFolder
{
NSMutableDictionary *uidToFilename;
NSTimeZone *timeZone;
}
/* selection */
@@ -99,9 +96,6 @@
- (NSArray *)fetchAllSOGoAppointments;
- (void) setTimeZone: (NSTimeZone *) newTZ;
- (NSTimeZone *) viewTimeZone;
@end
#endif /* __Appointments_SOGoAppointmentFolder_H__ */

View File

@@ -69,18 +69,6 @@ static NSNumber *sharedYes = nil;
[super dealloc];
}
/* timezone */
- (void) setTimeZone: (NSTimeZone *) newTZ
{
timeZone = newTZ;
}
- (NSTimeZone *) viewTimeZone
{
return timeZone;
}
/* logging */
- (id) debugLogger
@@ -216,7 +204,7 @@ static NSNumber *sharedYes = nil;
if ((tmp = [_record objectForKey:@"startdate"])) {
tmp = [[NSCalendarDate alloc] initWithTimeIntervalSince1970:
(NSTimeInterval)[tmp unsignedIntValue]];
[tmp setTimeZone:[self viewTimeZone]];
[tmp setTimeZone: [self userTimeZone]];
if (tmp) [md setObject:tmp forKey:@"startDate"];
[tmp release];
}
@@ -226,7 +214,7 @@ static NSNumber *sharedYes = nil;
if ((tmp = [_record objectForKey:@"enddate"])) {
tmp = [[NSCalendarDate alloc] initWithTimeIntervalSince1970:
(NSTimeInterval)[tmp unsignedIntValue]];
[tmp setTimeZone:[self viewTimeZone]];
[tmp setTimeZone: [self userTimeZone]];
if (tmp) [md setObject:tmp forKey:@"endDate"];
[tmp release];
}
@@ -246,10 +234,10 @@ static NSNumber *sharedYes = nil;
/* cycle is in _r */
tmp = [_r startDate];
[tmp setTimeZone:[self viewTimeZone]];
[tmp setTimeZone:[self userTimeZone]];
[md setObject:tmp forKey:@"startDate"];
tmp = [_r endDate];
[tmp setTimeZone:[self viewTimeZone]];
[tmp setTimeZone:[self userTimeZone]];
[md setObject:tmp forKey:@"endDate"];
return md;