Item14471: HistoryPlugin not properly rendering date tokens as stated in doc

pencil
Priority: Normal
Current State: Waiting for Release
Released In: 2.1.5
Target Release: patch
Applies To: Extension
Component: HistoryPlugin
Branches: master Release02x01 Item14288
Reported By: LynnwoodBrown
Waiting For:
Last Change By: MichaelDaum
The docs indicate that the format parameter supports "any variable which is supported by macro REVINFO". VarREVINFO in turn states that one can use any of the date tokens specified in VarGMTIME macro. However, as demonstrated below, using those tokens result in display only the date of latest revision.

Code:
%HISTORY{topic="%WEB%.WebHome"
  header="| *Version* | *Date* | *Formatted Date* | $n"
  format="| r$rev | $date | $day $month $year - $hours:$minutes:$seconds  |"
}%

Result:
Version Date Formatted Date
r57 13 Sep 2017 - 12:15 13 Sep 2017 - 12:15:52
r56 08 Dec 2016 - 16:14 13 Sep 2017 - 12:15:52
r55 25 Sep 2016 - 13:49 13 Sep 2017 - 12:15:52
r54 15 Mar 2016 - 22:21 13 Sep 2017 - 12:15:52
r53 03 Dec 2015 - 21:04 13 Sep 2017 - 12:15:52
r52 26 Nov 2015 - 17:58 13 Sep 2017 - 12:15:52
r51 25 Sep 2015 - 14:06 13 Sep 2017 - 12:15:52
r50 04 Aug 2015 - 10:16 13 Sep 2017 - 12:15:52
r49 15 Jul 2015 - 14:45 13 Sep 2017 - 12:15:52
r48 15 Jul 2015 - 01:30 13 Sep 2017 - 12:15:52
...

-- LynnwoodBrown - 31 Aug 2017

 
Topic revision: r5 - 19 Sep 2017, MichaelDaum - This page was cached on 25 Sep 2017 - 12:32.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License