mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed 'next day' in quick filter with 'date' attributes not showing up correctly
SVN revision: 2110
This commit is contained in:
parent
635e62b3bd
commit
949c9a1057
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user