summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xslt/uddf.xslt7
1 files changed, 5 insertions, 2 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 1e219c5f8..d9b3f9a7d 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -60,9 +60,12 @@
<xsl:value-of select="concat(format-number(time/hour, '00'), ':', format-number(time/minute, '00'))"/>
</xsl:attribute>
</xsl:when>
- <xsl:when test="u:informationbeforedive/u:datetime != ''">
+ <xsl:when test="informationbeforedive/datetime|u:informationbeforedive/u:datetime != ''">
<xsl:attribute name="date">
- <xsl:value-of select="u:informationbeforedive/u:datetime"/>
+ <xsl:value-of select="substring-before(informationbeforedive/datetime|u:informationbeforedive/u:datetime, 'T')"/>
+ </xsl:attribute>
+ <xsl:attribute name="time">
+ <xsl:value-of select="substring-after(informationbeforedive/datetime|u:informationbeforedive/u:datetime, 'T')"/>
</xsl:attribute>
</xsl:when>
</xsl:choose>