diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-10-05 23:40:08 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-10-05 23:40:08 +0100 |
commit | 3d8caf88f072bed80f55b61b10734f1496622acc (patch) | |
tree | 211a5c49370906ed6d8c71df29d8c334a0975d7b /gentoobrowse/xslt/base.xslt | |
parent | C++17 and Ice 3.7 (diff) | |
download | gentoobrowse-3d8caf88f072bed80f55b61b10734f1496622acc.tar.bz2 gentoobrowse-3d8caf88f072bed80f55b61b10734f1496622acc.tar.xz gentoobrowse-3d8caf88f072bed80f55b61b10734f1496622acc.zip |
Remove fractional part from times
Diffstat (limited to 'gentoobrowse/xslt/base.xslt')
-rw-r--r-- | gentoobrowse/xslt/base.xslt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gentoobrowse/xslt/base.xslt b/gentoobrowse/xslt/base.xslt index d992210..fece04d 100644 --- a/gentoobrowse/xslt/base.xslt +++ b/gentoobrowse/xslt/base.xslt @@ -27,7 +27,7 @@ <xsl:template name="humanDateTime"> <xsl:param name="date"/> <time> - <xsl:attribute name="datetime"><xsl:value-of select="$date" /></xsl:attribute> + <xsl:attribute name="datetime"><xsl:value-of select="substring-before($date, '.')" /></xsl:attribute> <xsl:if test="date:year($date) = date:year(date:date-time())"> <xsl:value-of select="date:day-name($date)" /> <xsl:text> </xsl:text> @@ -48,7 +48,7 @@ <xsl:template name="simpleTime"> <xsl:param name="date"/> <time> - <xsl:attribute name="datetime"><xsl:value-of select="$date" /></xsl:attribute> + <xsl:attribute name="datetime"><xsl:value-of select="substring-before($date, '.')" /></xsl:attribute> <xsl:value-of select="format-number(date:hour-in-day($date), '00')" />:<small><xsl:value-of select="format-number(date:minute-in-hour($date), '00')" /></small> </time> </xsl:template> |