mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Fix time fraction calculation for CSV import
Previous formula didn't handle values of less than 10 correctly. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ac800e14dd
commit
821e35d2bb
1 changed files with 2 additions and 2 deletions
|
@ -233,10 +233,10 @@
|
|||
<xsl:choose>
|
||||
<xsl:when test="substring-after($value, '.') != ''">
|
||||
<!-- Well, I suppose it was min.sec -->
|
||||
<xsl:value-of select="substring-before($value, '.') * 60 + substring(substring-after($value, '.') * 60, 1, 2)" />
|
||||
<xsl:value-of select="substring-before($value, '.') * 60 + concat('.', substring-after($value, '.')) * 60" />
|
||||
</xsl:when>
|
||||
<xsl:when test="substring-after($value, ',') != ''">
|
||||
<xsl:value-of select="substring-before($value, ',') * 60 + substring(substring-after($value, ',') * 60, 1, 2)" />
|
||||
<xsl:value-of select="substring-before($value, ',') * 60 + concat('.', substring-after($value, ',')) * 60" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$value"/>
|
||||
|
|
Loading…
Reference in a new issue