diff options
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> |