mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
Monotone-Parent: c33c456b52c6e6d4ee1f29bfd9ca57096b8d13be
Monotone-Revision: 5539e3c473023281dd04f7cb8a8fee051ac0735d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-04-11T19:08:58 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -290,12 +290,15 @@
|
||||
{
|
||||
NSCalendarDate *newStartDate, *now;
|
||||
int hour;
|
||||
NSTimeZone *timeZone;
|
||||
|
||||
timeZone = [[context activeUser] timeZone];
|
||||
|
||||
newStartDate = [self selectedDate];
|
||||
if ([[self queryParameterForKey: @"hm"] length] == 0)
|
||||
{
|
||||
now = [NSCalendarDate calendarDate];
|
||||
[now setTimeZone: [[self clientObject] userTimeZone]];
|
||||
[now setTimeZone: timeZone];
|
||||
if ([now isDateOnSameDay: newStartDate])
|
||||
{
|
||||
hour = [now hourOfDay];
|
||||
@@ -434,20 +437,19 @@
|
||||
- (id) acceptOrDeclineAction: (BOOL) _accept
|
||||
{
|
||||
[[self clientObject] changeParticipationStatus:
|
||||
_accept ? @"ACCEPTED" : @"DECLINED"
|
||||
inContext: [self context]];
|
||||
_accept ? @"ACCEPTED" : @"DECLINED"];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id) acceptAction
|
||||
{
|
||||
return [self acceptOrDeclineAction:YES];
|
||||
return [self acceptOrDeclineAction: YES];
|
||||
}
|
||||
|
||||
- (id) declineAction
|
||||
{
|
||||
return [self acceptOrDeclineAction:NO];
|
||||
return [self acceptOrDeclineAction: NO];
|
||||
}
|
||||
|
||||
- (id) changeStatusAction
|
||||
|
||||
Reference in New Issue
Block a user