summaryrefslogtreecommitdiffstats
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 12:28:56 -0800
commit4f26240b559893792d65ec57fc776285297cdd09 (patch)
tree6cde3cf90d7c2d1d5ca825322aacfaef44d23f0e /xslt
parentacff84a58da0afd548de22f8fb93c25625692668 (diff)
downloadsubsurface-4f26240b559893792d65ec57fc776285297cdd09.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"/>