Skip to content

Commit

Permalink
Use same timstamp for statistics as for aggregates
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#203.
  • Loading branch information
iay committed Dec 2, 2019
1 parent 416112e commit 00ed781
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@
<property name="transformParameters">
<map>
<entry key="memberDocument" value-ref="uk_membersDocument"/>
<entry key="now_ISO" value-ref="now_ISO"/>
</map>
</property>
</bean>
Expand Down
14 changes: 11 additions & 3 deletions mdx/uk/statistics.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,17 @@
-->
<xsl:param name="memberDocument"/>

<xsl:template match="md:EntitiesDescriptor">
<!--
now_ISO
This parameter is an ISO8601 representation of the UTC instant
at which the aggregate generation started.
<xsl:variable name="now" select="date:date-time()"/>
Example: 2019-10-23T10:25:11Z
-->
<xsl:param name="now_ISO"/>

<xsl:template match="md:EntitiesDescriptor">

<!--
Break down the "members" document.
Expand Down Expand Up @@ -110,7 +118,7 @@
</p>
<p>
The document is regenerated each time the UK Federation metadata is built;
this version was created at <xsl:value-of select="$now"/>.
this version was created at <xsl:value-of select="$now_ISO"/>.
</p>
<p>This document is produced as a working document of the UK federation core team.
Some of the statistics may be approximations, and the report may be used to track
Expand Down

0 comments on commit 00ed781

Please sign in to comment.