mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
(html) Display year in day and week views
This commit is contained in:
@@ -305,6 +305,15 @@
|
||||
return [NSNumber numberWithInt: [currentTableHour intValue]];
|
||||
}
|
||||
|
||||
- (NSString *) currentYear
|
||||
{
|
||||
if (([currentTableDay dayOfMonth] == 1 && [currentTableDay monthOfYear] == 1) ||
|
||||
[daysToDisplay indexOfObject: currentTableDay] == 0)
|
||||
return [NSString stringWithFormat: @"%i", [currentTableDay yearOfCommonEra]];
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) labelForDay
|
||||
{
|
||||
return [weekDays objectAtIndex: [currentTableDay dayOfWeek]];
|
||||
|
||||
Reference in New Issue
Block a user