aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-02-17 21:32:58 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-17 14:07:22 -0800
commit169fb32484505b3a83cbdf2717a9a14a9ef5d950 (patch)
treec262dcf88f6a48bd145f3c2b43b790c29e09f86b /xslt
parent3580c546db101ccdc5293ef1830e769458bf9d94 (diff)
downloadsubsurface-169fb32484505b3a83cbdf2717a9a14a9ef5d950.tar.gz
Add time to DiveLog import
I originally thought about converting the time as well, but my fingers were too slow and memory too short to actually do that :D 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/DiveLog.xslt4
1 files changed, 4 insertions, 0 deletions
diff --git a/xslt/DiveLog.xslt b/xslt/DiveLog.xslt
index 579e177da..66a3fd061 100644
--- a/xslt/DiveLog.xslt
+++ b/xslt/DiveLog.xslt
@@ -32,6 +32,10 @@
<xsl:value-of select="concat(substring-after(substring-after(substring-before(@DateTime, ' '), '/'), '/'), '-', substring-before(@DateTime, '/'), '-', substring-before(substring-after(@DateTime, '/'), '/'))"/>
</xsl:attribute>
+ <xsl:attribute name="time">
+ <xsl:value-of select="substring-after(@DateTime, ' ')"/>
+ </xsl:attribute>
+
<xsl:attribute name="duration">
<xsl:call-template name="timeConvert">
<xsl:with-param name="timeSec" select="@Duration"/>