Monotone-Parent: eb7683f1196884474dd2db6823f4dd8800732b54
Monotone-Revision: 4ad21ea0342a626a99aabc213cf8ed9a827eb0c4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-11-01T21:18:43 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
b51fbf7040
commit
29ffadc001
|
@ -34,6 +34,7 @@
|
|||
#import <SOGo/NSDictionary+Utilities.h>
|
||||
#import <SOGo/NSObject+Utilities.h>
|
||||
#import <SOGo/NSString+Utilities.h>
|
||||
#import <SOGo/SOGoDateFormatter.h>
|
||||
#import <SOGo/SOGoUser.h>
|
||||
#import <SOGo/SOGoUserDefaults.h>
|
||||
|
||||
|
@ -172,9 +173,11 @@
|
|||
|
||||
- (void) setupValues
|
||||
{
|
||||
NSString *sentBy, *sentByText, *description;
|
||||
NSCalendarDate *date;
|
||||
NSDictionary *sentByValues;
|
||||
NSString *sentBy, *sentByText;
|
||||
SOGoUser *user;
|
||||
SOGoDateFormatter *dateFormatter;
|
||||
|
||||
user = [context activeUser];
|
||||
viewTZ = [[user userDefaults] timeZone];
|
||||
|
@ -200,6 +203,25 @@
|
|||
sentByText = @"";
|
||||
[values setObject: sentByText forKey: @"SentByText"];
|
||||
}
|
||||
|
||||
dateFormatter = [[context activeUser] dateFormatterInContext: context];
|
||||
|
||||
date = [self newStartDate];
|
||||
[values setObject: [dateFormatter shortFormattedDate: date]
|
||||
forKey: @"StartDate"];
|
||||
[values setObject: [dateFormatter formattedTime: date]
|
||||
forKey: @"StartTime"];
|
||||
|
||||
date = [self newEndDate];
|
||||
[values setObject: [dateFormatter shortFormattedDate: date]
|
||||
forKey: @"EndDate"];
|
||||
[values setObject: [dateFormatter formattedTime: date]
|
||||
forKey: @"EndTime"];
|
||||
|
||||
description = [[self apt] comment];
|
||||
[values setObject: (description ? description : @"")
|
||||
forKey: @"Description"];
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue