Item14471: HistoryPlugin not properly rendering date tokens as stated in documentation.

pencil
Priority: Normal
Current State: Closed
Released In: 2.1.5
Target Release: patch
Applies To: Extension
Component: HistoryPlugin
Branches: master Release02x01 Item14288 Item14454 Item14380 Item14537
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
r65 08 Nov 2024 - 09:14 08 Nov 2024 - 09:14:06
r64 12 Apr 2024 - 06:48 12 Apr 2024 - 06:48:44
r63 16 Nov 2020 - 18:15 16 Nov 2020 - 18:15:23
r62 29 Sep 2020 - 17:27 29 Sep 2020 - 17:27:48
r61 28 Sep 2020 - 16:18 28 Sep 2020 - 16:18:00
r60 01 May 2020 - 08:09 01 May 2020 - 08:09:13
r59 29 Oct 2019 - 12:07 29 Oct 2019 - 12:07:55
r58 22 Aug 2019 - 22:59 22 Aug 2019 - 22:59:44
r57 13 Sep 2017 - 12:15 13 Sep 2017 - 12:15:52
r56 08 Dec 2016 - 16:14 08 Dec 2016 - 16:14:08
...

-- LynnwoodBrown - 31 Aug 2017

 
Topic revision: r10 - 31 Jan 2018, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy