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:
parent
f83df2e8a8
commit
dfe6423f77
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ class BaseWorkItemsView(object):
|
||||||
tsFrom = parseDate(form.get('wi_from') or self.options.wi_from)
|
tsFrom = parseDate(form.get('wi_from') or self.options.wi_from)
|
||||||
tsTo = parseDate(form.get('wi_to') or self.options.wi_to)
|
tsTo = parseDate(form.get('wi_to') or self.options.wi_to)
|
||||||
if tsTo:
|
if tsTo:
|
||||||
tsTo += 3600 * 24 # include full end date
|
tsTo += 3600 * 24 - 1 # include full end date
|
||||||
if tsFrom or tsTo:
|
if tsFrom or tsTo:
|
||||||
result['timeFromTo'] = (tsFrom, tsTo)
|
result['timeFromTo'] = (tsFrom, tsTo)
|
||||||
state = form.get('wi_state') or self.options.wi_state
|
state = form.get('wi_state') or self.options.wi_state
|
||||||
|
|
Loading…
Add table
Reference in a new issue