• 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.

Item3659: Relative date comparisons not working

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension DBCacheContrib Enhancement Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Relative date comparison don't appear to be working in searches (eg "date LATER_THAN 'now - 2 days'")

Reported by Lynnwood and Michael


Added a unit test, and they work perfectly.

-- TWiki:Main/CrawfordCurrie - 19 Feb 2007

user was comparing dates taken from info.sate, which is a time in seconds.

So changing this to an enhancement; viz to add a function 'epochdate' that can wrap an integer number of seconds and turn it into an epoch date.

CC

Decided to use automatic type conversion instead. When a date operator is used, a plain integer will automatically be converted to a date.

CC

ItemTemplate
Summary Relative date comparisons not working
ReportedBy TWiki:Main.CrawfordCurrie
Codebase

SVN Range TWiki-4.1.1, Fri, 16 Feb 2007, build 12896
AppliesTo Extension
Component DBCacheContrib
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins 12943
TargetRelease n/a
ReleasedIn

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