From 4d658e92df574c53b1a7d75656a6222204814f08 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 16 Jun 2009 16:21:21 +0000 Subject: [PATCH] Monotone-Parent: 5b157dfb1488dbe9d2aa3f2e03d255c9bf733ede Monotone-Revision: 7a110f21e21ad564421e79c922f4bf78dc6f1846 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-16T16:21:21 Monotone-Branch: ca.inverse.sogo --- SoObjects/Appointments/SOGoAppointmentFolder.m | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index 17df7e30f..d984e1c7b 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -1554,10 +1554,13 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir if ([cycle intValue]) { cEndDate = [filter objectForKey: @"cycleenddate"]; - filterString = [NSString stringWithFormat: - @"(c_cycleenddate = NULL OR c_cycleenddate >= %u)", - (unsigned int) [cEndDate timeIntervalSince1970]]; - [filters addObject: filterString]; + if ([cEndDate intValue]) + { + filterString = [NSString stringWithFormat: + @"(c_cycleenddate = NULL OR c_cycleenddate >= %@)", + cEndDate]; + [filters addObject: filterString]; + } } }