xsl/[ix]cal: dtend is non-inclusive when specified as date w/o time

This commit is contained in:
Astro 2013-09-01 22:27:45 +02:00
parent 69a4bd850d
commit c5ac688260
2 changed files with 20 additions and 2 deletions

View File

@ -89,7 +89,16 @@
<xsl:if test="not(string(.) = string(../start))">
<xsl:text>DTEND:</xsl:text>
<xsl:call-template name="date-to-hevent">
<xsl:with-param name="date" select="string(.)"/>
<xsl:with-param name="date">
<xsl:choose>
<xsl:when test="contains(., 'T')">
<xsl:value-of select="string(.)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="date:add(., 'P1D')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
<xsl:text>&#13;&#10;</xsl:text>
</xsl:if>

View File

@ -70,7 +70,16 @@
<xsl:if test="not(string(.) = string(../start))">
<dtend>
<xsl:call-template name="date-to-hevent">
<xsl:with-param name="date" select="string(.)"/>
<xsl:with-param name="date">
<xsl:choose>
<xsl:when test="contains(., 'T')">
<xsl:value-of select="string(.)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="date:add(., 'P1D')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</dtend>
</xsl:if>