Rounding error on time change

When we convert time in seconds to mm:ss format, we do not want to round
but get floor instead.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-10-16 21:20:26 +03:00 committed by Dirk Hohndel
parent 4f23ff144f
commit 80bced4f56

View file

@ -107,7 +107,7 @@
<xsl:template name="sec2time">
<xsl:param name="timeSec"/>
<xsl:value-of select="concat(round($timeSec div 60), ':', format-number($timeSec mod 60, '00'))"/>
<xsl:value-of select="concat(floor($timeSec div 60), ':', format-number($timeSec mod 60, '00'))"/>
</xsl:template>
<!-- Calculate sum of all parameters, and strip any unit following the