Item10476: Combination of REVINFO format tokens results to broken result

Priority: Normal
Current State: Closed
Released In: 1.1.3
Target Release: patch
Applies To: Engine
Component:
Reported By: ArthurClemens
Waiting For:
Last Change By: KennethLavrsen

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 distro:7f22b04878af distro:ea39e64ad966
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