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
r57 13 Sep 2017 - 12:15 13 Sep 2017 - 12:15:52
r56 08 Dec 2016 - 16:14 08 Dec 2016 - 16:14:08
r55 25 Sep 2016 - 13:49 25 Sep 2016 - 13:49:59
r54 15 Mar 2016 - 22:21 15 Mar 2016 - 22:21:56
r53 03 Dec 2015 - 21:04 03 Dec 2015 - 21:04:30
r52 26 Nov 2015 - 17:58 26 Nov 2015 - 17:58:41
r51 25 Sep 2015 - 14:06 25 Sep 2015 - 14:06:33
r50 04 Aug 2015 - 10:16 04 Aug 2015 - 10:16:38
r49 15 Jul 2015 - 14:45 15 Jul 2015 - 14:45:04
r48 15 Jul 2015 - 01:30 15 Jul 2015 - 01:30:43
...

-- LynnwoodBrown - 31 Aug 2017

 
Topic revision: r10 - 31 Jan 2018, MichaelDaum - This page was cached on 17 Feb 2018 - 17:16.

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