subtract one second from end date to exclude 00:00 of the following day

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3187 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2009-01-29 07:44:59 +00:00
parent f83df2e8a8
commit dfe6423f77

View file

@ -185,7 +185,7 @@ class BaseWorkItemsView(object):
tsFrom = parseDate(form.get('wi_from') or self.options.wi_from)
tsTo = parseDate(form.get('wi_to') or self.options.wi_to)
if tsTo:
tsTo += 3600 * 24 # include full end date
tsTo += 3600 * 24 - 1 # include full end date
if tsFrom or tsTo:
result['timeFromTo'] = (tsFrom, tsTo)
state = form.get('wi_state') or self.options.wi_state