summaryrefslogtreecommitdiffstats
path: root/xslt/csv2xml.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/csv2xml.xslt')
-rw-r--r--xslt/csv2xml.xslt5
1 files changed, 5 insertions, 0 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index f2a11dae3..4d9aa868f 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -105,6 +105,11 @@
</xsl:with-param>
</xsl:call-template>
</xsl:when>
+ <xsl:when test="substring-after(substring-after($value, ':'), ':') = ''">
+ <!-- We assume time format m:s -->
+
+ <xsl:value-of select="substring-before($value, ':') * 60 + substring-after($value, ':')" />
+ </xsl:when>
<xsl:otherwise>
<!-- We assume time format h:m:s -->