mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
4f23ff144f
commit
80bced4f56
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue