DTEND not needed for full day events.

svn path=/trunk/; revision=34623
This commit is contained in:
jonas 2016-12-05 08:08:24 +00:00
parent bd92a8e71c
commit 8705a1ed85

View File

@ -19,9 +19,9 @@
<xsl:variable name="start">
<xsl:value-of select="translate (@start, '-', '')" />
</xsl:variable>
<xsl:variable name="end">
<xsl:value-of select="concat(substring(@end,1,4),substring(@end,6,2),substring(@end,9,2)+1)" />
<xsl:value-of select="translate (@end, '-', '')" />
</xsl:variable>
<xsl:variable name="link">
@ -42,7 +42,9 @@
<xsl:call-template name="nl" />
<xsl:text>DTSTART;VALUE=DATE:</xsl:text><xsl:value-of select="$start" /><xsl:call-template name="nl" />
<xsl:text>DTEND;VALUE=DATE:</xsl:text><xsl:value-of select="$end" /><xsl:call-template name="nl" />
<xsl:if test="not($start = $end)">
<xsl:text>DTEND;VALUE=DATE:</xsl:text><xsl:value-of select="$end" /><xsl:call-template name="nl" />
</xsl:if>
<xsl:text>URL:</xsl:text>
<xsl:choose>