From 949c9a1057d1c486180af9fa980f81b3d8bf671a Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 5 Jun 2008 19:01:31 +0000 Subject: [PATCH] Fixed 'next day' in quick filter with 'date' attributes not showing up correctly SVN revision: 2110 --- src/elogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 1c8a1a27..ac9ae7e8 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -19135,12 +19135,12 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa /* negative i: last [i] days */ if (ltime < 0) - if (atoi(attrib[i]) < now + ltime * 3600 * 24 || atoi(attrib[i]) > now) + if (atoi(attrib[i]) < now + ltime * 3600 * 24 - 3600 * 12 || atoi(attrib[i]) > now) break; /* positive i: next [i] days */ if (ltime > 0) - if (atoi(attrib[i]) > now + ltime * 3600 * 24 || atoi(attrib[i]) < now) + if (atoi(attrib[i]) > now + ltime * 3600 * 24 + 3600 * 12 || atoi(attrib[i]) < now) break; /* check for start date / end date */