mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: 86254bf9ee207ad3d107e4b91fbc6cb00de4fb98
Monotone-Revision: 2e091eebec7082ccae481171b67c0091e367dcb1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-18T22:56:47 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -243,6 +243,21 @@ static BOOL shouldDisplayWeekend = NO;
|
||||
hours:0 minutes:0 seconds:0];
|
||||
}
|
||||
|
||||
- (NSCalendarDate *)prevMonth {
|
||||
NSCalendarDate *date = [self thisMonth];
|
||||
return [date dateByAddingYears:0 months:-1 days:0
|
||||
hours:0 minutes:0 seconds:0];
|
||||
}
|
||||
|
||||
- (NSString *) prevMonthAsString
|
||||
{
|
||||
return [self dateStringForDate: [self prevMonth]];
|
||||
}
|
||||
|
||||
- (NSString *) nextMonthAsString
|
||||
{
|
||||
return [self dateStringForDate: [self nextMonth]];
|
||||
}
|
||||
|
||||
/* current day related */
|
||||
|
||||
@@ -250,12 +265,14 @@ static BOOL shouldDisplayWeekend = NO;
|
||||
[_day setTimeZone:[self viewTimeZone]];
|
||||
ASSIGN(self->currentDay, _day);
|
||||
}
|
||||
- (NSCalendarDate *)currentDay {
|
||||
|
||||
- (NSCalendarDate *) currentDay {
|
||||
return self->currentDay;
|
||||
}
|
||||
|
||||
- (NSString *)currentDayName {
|
||||
return [self localizedNameForDayOfWeek:[self->currentDay dayOfWeek]];
|
||||
- (NSString *) currentDayName
|
||||
{
|
||||
return [self localizedNameForDayOfWeek: [self->currentDay dayOfWeek]];
|
||||
}
|
||||
|
||||
- (id)holidayInfo {
|
||||
@@ -363,6 +380,7 @@ static BOOL shouldDisplayWeekend = NO;
|
||||
ed = [self endDate];
|
||||
[self setAppointments:[folder fetchOverviewInfosFrom:sd to:ed]];
|
||||
}
|
||||
|
||||
return self->appointments;
|
||||
}
|
||||
|
||||
@@ -394,6 +412,16 @@ static BOOL shouldDisplayWeekend = NO;
|
||||
|
||||
/* date selection & conversion */
|
||||
|
||||
- (NSDictionary *) _dateQueryParametersWithOffset: (int) daysOffset
|
||||
{
|
||||
NSCalendarDate *date;
|
||||
|
||||
date = [[self startDate] dateByAddingYears: 0 months: 0
|
||||
days: daysOffset
|
||||
hours:0 minutes:0 seconds:0];
|
||||
return [self queryParametersBySettingSelectedDate:date];
|
||||
}
|
||||
|
||||
- (NSDictionary *)todayQueryParameters {
|
||||
NSCalendarDate *date;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user