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