* %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:
- 2007-05-26
- 2007-05-26 - 00:14
- 00:14:15
- $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