mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 06:18:50 +00:00
Monotone-Parent: 2fdf0ead0781ef2362dd389811d5db44ca4cc84a
Monotone-Revision: c91eef7edcfd08d414664c25a590b6268a7e58e2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-29T04:19:32 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -29,7 +29,8 @@
|
||||
|
||||
#import <EOControl/EOQualifier.h>
|
||||
|
||||
#import <SoObjects/SOGo/SOGoUser.h>
|
||||
#import <SOGo/SOGoUser.h>
|
||||
#import <SOGo/SOGoUserDefaults.h>
|
||||
|
||||
#include "UIxCalWeekView.h"
|
||||
|
||||
@@ -54,15 +55,17 @@
|
||||
- (NSCalendarDate *) endDate
|
||||
{
|
||||
unsigned offset;
|
||||
|
||||
if ([self shouldDisplayWeekend])
|
||||
SOGoUserDefaults *ud;
|
||||
|
||||
ud = [[context activeUser] userDefaults];
|
||||
if ([ud calendarShouldDisplayWeekend])
|
||||
offset = 7;
|
||||
else
|
||||
offset = 5;
|
||||
|
||||
return [[[self startDate] dateByAddingYears:0 months:0 days:offset
|
||||
hours:0 minutes:0 seconds:0]
|
||||
endOfDay];
|
||||
return [[[self startDate] dateByAddingYears: 0 months: 0 days: offset
|
||||
hours: 0 minutes: 0 seconds: 0]
|
||||
endOfDay];
|
||||
}
|
||||
|
||||
// - (NSArray *) appointments
|
||||
|
||||
Reference in New Issue
Block a user