• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Action searches fail on my ssytem when specifying a relative instead of an absolute closing date. For reference I copy my search entry below:

%ACTIONSEARCH{state="closed" web="Orbspace|Infinity" header="|Closed|Who|Closer|Description|" format="|$closed| $who | $closer |$text|" sort="closed, who" }%

This entry works well because no "closed" search tag is given yet. It also works if I specify an absolute "closed" date, e.g. closed="27 sep 2006". If I specify however a relative "closed" date such as closed="yesterday", closed="last week", etc. no search result is obtained. Anyone who could help me?


The first thing is that when searching a date range you have to use a comparison op. In this case, ">yesterday" would appear to make sense. However yesterday to Time::ParseDate means now - 24 hours. Since an absolute date matches midnight on the day in question, an action closed midnight yesterday will never match "yesterday".

I would recommend you use closed=">now - 2 days".

Not a bug. Discarded.

CC

ItemTemplate
Summary Action search failes with relative date
ReportedBy TWiki:Main.AronLentsch
Codebase 4.0.4
SVN Range TWiki-4.1, Sat, 23 Sep 2006, build 11571
AppliesTo Extension
Component ActionTrackerPlugin
Priority Normal
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2006-10-10 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback