From 29ffadc0014312f9f9bcaf4688cf43b8e2264f91 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 1 Nov 2010 21:18:43 +0000 Subject: [PATCH] Monotone-Parent: eb7683f1196884474dd2db6823f4dd8800732b54 Monotone-Revision: 4ad21ea0342a626a99aabc213cf8ed9a827eb0c4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-11-01T21:18:43 Monotone-Branch: ca.inverse.sogo --- .../Appointments/SOGoAptMailNotification.m | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/SoObjects/Appointments/SOGoAptMailNotification.m b/SoObjects/Appointments/SOGoAptMailNotification.m index 5cc54cfac..85f2e6b39 100644 --- a/SoObjects/Appointments/SOGoAptMailNotification.m +++ b/SoObjects/Appointments/SOGoAptMailNotification.m @@ -34,6 +34,7 @@ #import #import #import +#import #import #import @@ -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