You are here: Foswiki>Tasks Web>Item3116 (15 Mar 2011, GeorgeClark)Edit Attach
   * %REVINFO{$date}%
   * %SEARCH{"^%TOPIC%" regex="on" scope="topic" nosearch="on" nototal="on" zeroresults="off" format="$date"}%
   * %REVINFO{$time}%
   * %SEARCH{"^%TOPIC%" regex="on" scope="topic" nosearch="on" nototal="on" zeroresults="off" format="$time"}%

results in:

  • 15 Mar 2011
  • 15 Mar 2011 - 04:35
  • 04:35:48
  • $time

  • REVINFO $date passes no time with $date, formatted search does
  • REVINFO $time passes seconds
  • Formatted search does not have a $time parameter

AC

Probably more of an enhancement, but you have a good point in that these should be aligned featurewise.

-- SP

Doesn;t this duplicate what Kenneth was talking about at the last release meeting?

CC

It does not really duplicate as such.

But they are related.

The changes I am working on influence the date format but whether the time part should be included or not is not only a matter of allignment but also a matter of backwards compatibility. And also a matter of personal taste and personal oppinions.

We are going to break quite a lot of TWiki applications if we change one of them. I personally have a few Twiki apps that would be affected.

If we later want to improve this then a proposal is needed that maintains compatibility.

I will keep this one assigned to me leaving it in waiting for feedback to remind me to verify the new date feature. But I am not going to remove the time part of SEARCH. If we want a more flexible formatted search then it is better to add support for $time, $day, $month, $mo, and $year than breaking compatibility by changing behaviour of $date.

But we agreed to freeze for new features for 4.2.0. We have many already accepted features that are not yet implemented and will be deferred. Unit tests fails in great numbers and the number of open bug items is sky high. Let is finish what we have agreed for 4.2.0 and get into the focussed bug fighting mode and defer new features.

-- KennethLavrsen - 25 May 2007

My feature is now implemented.

And as noted. I did not want to alter the current behavior of SEARCH or REVINFO. At least not without time for people to report back.

Changing to enhancement.

-- KennethLavrsen - 26 May 2007

We need to think again of consistency in formatting parameters with ExtractAndCentralizeFormattingRefactor.

-- ArthurClemens - 25 Jan 2009

ItemTemplate edit

Summary Date and time format parameters differ for SEARCH and REVINFO
ReportedBy TWiki:Main.ArthurClemens
Codebase
SVN Range TWiki-4.1, Mon, 06 Nov 2006, build 11926
AppliesTo Engine
Component SEARCH, REVINFO
Priority Enhancement
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r8 - 15 Mar 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy