diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2016-11-09 21:39:26 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-11-15 03:22:46 -0800 |
commit | b88d403fb637ff7003c3d31fb54f1ecc17f0910a (patch) | |
tree | 1e4f087607342e457ec79bf7140f9ab45cf54f9a /xslt/csv2xml.xslt | |
parent | c78bbf688399cad7de7e3c058baa07f3d5513cff (diff) | |
download | subsurface-b88d403fb637ff7003c3d31fb54f1ecc17f0910a.tar.gz |
CSV import might have time in sec.fraction format
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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 --> |