Item10476: Combination of REVINFO format tokens results to broken result
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Engine |
|
|
Test 1: iso+rcs+http+epoch
%REVINFO{"start, iso=$iso, rcs=$rcs, http=$http, epoch=$epoch, end"}%
output:
start, iso=2011-04-16T22:26:08Z, rcs=2011/04/16 22:26:08, http=Sat, 16 Apr 2011 22:26:08 GMT, epoch=1302992768, end
Test 2: iso
%REVINFO{"start, iso=$iso, end"}%
output:
start, iso=2011-04-16T22:26:08Z, end
Test 3: iso+rcs
%REVINFO{"start, iso=$iso, rcs=$rcs, end"}%
output:
start, iso=2011-04-16T22:26:08Z, rcs=2011/04/16 22:26:08, end
Test 3: iso+rcs+http
%REVINFO{"start, iso=$iso, rcs=$rcs, http=$http, end"}%
output:
start, iso=2011-04-16T22:26:08Z, rcs=2011/04/16 22:26:08, end
Test 4: iso+rcs+epoch
%REVINFO{"start, iso=$iso, rcs=$rcs, http=$http, end"}%
output:
start, iso=2011-04-16T22:26:08Z, epoch=1302992768, end
--
ArthurClemens - 12 Mar 2011
The problem is in
Foswiki::Time that just replaces format strings like this:
if ( $formatString =~ /rcs/i ) {
# RCS format, example: "2001/12/31 23:59:59"
$formatString = '$year/$mo/$day $hour:$min:$sec';
}
--
ArthurClemens - 12 Mar 2011