diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2016-11-09 22:46:32 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-11-15 03:23:17 -0800 |
commit | ac800e14dd46fdea49aa1254b055757b27537105 (patch) | |
tree | c6abd778bcfa4bf9aa5a0af2cb0d71b30cdce823 /xslt | |
parent | caeb72ceb00c4b3c8a3c8dffe2f9a90400f8e816 (diff) | |
download | subsurface-ac800e14dd46fdea49aa1254b055757b27537105.tar.gz |
CSV import: Support sec,fraction format
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/csv2xml.xslt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index ed4c23415..e535aa87d 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -236,8 +236,7 @@ <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 --> - <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:otherwise> <xsl:value-of select="$value"/> |