mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-10 07:48:52 +00:00
Monotone-Parent: 8313ed9c6676276b4f1d2981810ba014326bae4e
Monotone-Revision: eb72703318ad7c8d9bda828621243bd14a2740f4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-11T18:59:35 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user