diff options
Diffstat (limited to 'xslt/csv2xml.xslt')
-rw-r--r-- | xslt/csv2xml.xslt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index 226cd2de6..ed4c23415 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -226,14 +226,14 @@ </xsl:call-template> </xsl:when> <xsl:when test="number(translate($value, ',', '.')) = translate($value, ',', '.')"> - <!-- We assume time in seconds --> + <!-- We assume time in seconds with possibly fractions --> <xsl:call-template name="sec2time"> <xsl:with-param name="timeSec"> <xsl:choose> <xsl:when test="substring-after($value, '.') != ''"> <!-- Well, I suppose it was min.sec --> - <xsl:value-of select="substring-before($value, '.') * 60 + substring-after($value, '.')" /> + <xsl:value-of select="substring-before($value, '.') * 60 + substring(substring-after($value, '.') * 60, 1, 2)" /> </xsl:when> <xsl:when test="substring-after($value, ',') != ''"> <!-- Well, I suppose it was min.sec --> |