[PATCH 1/2] Add time to DiveLog import

Miika Turkia miika.turkia at gmail.com
Tue Feb 17 11:32:58 PST 2015


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 at gmail.com>
---
 xslt/DiveLog.xslt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xslt/DiveLog.xslt b/xslt/DiveLog.xslt
index 579e177..66a3fd0 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"/>
-- 
2.1.0



More information about the subsurface mailing list