The foswiki svn repository will become read-only on Friday 8/8. Developers should register for a http://github.com/ account for commit access to foswiki.

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
 

ItemTemplate edit

Summary Combination of REVINFO format tokens results to broken result
ReportedBy ArthurClemens
Codebase 1.1.3 beta1, 1.1.2, trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:11020 Foswikirev:11021
TargetRelease patch
ReleasedIn 1.1.3
Topic revision: r6 - 16 Apr 2011, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License