From 529875b1470c2ac3e3e237d3ebd2cf4e0a258725 Mon Sep 17 00:00:00 2001 From: helge Date: Mon, 11 Oct 2004 12:03:11 +0000 Subject: [PATCH] fixed -isAfternoon method git-svn-id: http://svn.opengroupware.org/SOPE/trunk@242 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-core/NGExtensions/ChangeLog | 5 +++++ sope-core/NGExtensions/FdExt.subproj/NSCalendarDate+misc.m | 7 +++---- sope-core/NGExtensions/Version | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sope-core/NGExtensions/ChangeLog b/sope-core/NGExtensions/ChangeLog index 2e5e7d23..57edda27 100644 --- a/sope-core/NGExtensions/ChangeLog +++ b/sope-core/NGExtensions/ChangeLog @@ -1,3 +1,8 @@ +2004-10-11 Matthew Joyce + + * FdExt.subproj/NSCalendarDate+misc.m: fixed -isAfternoon (all dates + were reported as forenoon) (v4.3.122) + 2004-10-08 Helge Hess * FdExt.subproj/NSString+URLEscaping.m: do not escape URL safe chars diff --git a/sope-core/NGExtensions/FdExt.subproj/NSCalendarDate+misc.m b/sope-core/NGExtensions/FdExt.subproj/NSCalendarDate+misc.m index 752c8ae1..5327438b 100644 --- a/sope-core/NGExtensions/FdExt.subproj/NSCalendarDate+misc.m +++ b/sope-core/NGExtensions/FdExt.subproj/NSCalendarDate+misc.m @@ -18,10 +18,9 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// $Id$ -#import "common.h" -#import "NSCalendarDate+misc.h" +#include "NSCalendarDate+misc.h" +#include "common.h" #define NUMBER_OF_SECONDS_IN_DAY (24 * 60 * 60) @@ -344,7 +343,7 @@ return [self hourOfDay] >= 12 ? NO : YES; } - (BOOL)isAfternoon { - return [self hourOfDay] >= 12 ? NO : YES; + return [self hourOfDay] >= 12 ? YES : NO; } - (NSCalendarDate *)yesterday { diff --git a/sope-core/NGExtensions/Version b/sope-core/NGExtensions/Version index bebec147..754354e9 100644 --- a/sope-core/NGExtensions/Version +++ b/sope-core/NGExtensions/Version @@ -1,6 +1,6 @@ # version -SUBMINOR_VERSION:=121 +SUBMINOR_VERSION:=122 # v4.3.115 requires libFoundation v1.0.59 # v4.2.72 requires libEOControl v4.2.39 -- 2.39.5