From 5e7f73dba030da3dc6e7c91a59823706b23c045d Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 11 Oct 2006 18:59:35 +0000 Subject: [PATCH] Monotone-Parent: 8313ed9c6676276b4f1d2981810ba014326bae4e Monotone-Revision: eb72703318ad7c8d9bda828621243bd14a2740f4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-11T18:59:35 Monotone-Branch: ca.inverse.sogo --- UI/Scheduler/UIxCalAptListView.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/UI/Scheduler/UIxCalAptListView.m b/UI/Scheduler/UIxCalAptListView.m index b6904cdb5..5da22d549 100644 --- a/UI/Scheduler/UIxCalAptListView.m +++ b/UI/Scheduler/UIxCalAptListView.m @@ -158,6 +158,7 @@ intDate = [[currentAppointment objectForKey: @"startdate"] intValue]; date = [NSCalendarDate dateWithTimeIntervalSince1970: intDate]; + [date setTimeZone: [[self clientObject] userTimeZone]]; return [NSString stringWithFormat: @"%d%.2d%.2d", [date yearOfCommonEra], @@ -165,4 +166,18 @@ [date dayOfMonth]]; } +- (NSString *) currentSerialHour +{ + NSCalendarDate *date; + int intDate; + + intDate = [[currentAppointment objectForKey: @"startdate"] intValue]; + date = [NSCalendarDate dateWithTimeIntervalSince1970: intDate]; + [date setTimeZone: [[self clientObject] userTimeZone]]; + + return [NSString stringWithFormat: @"%.2d%.2d", + [date hourOfDay], + [date minuteOfHour]]; +} + @end