xsl/[ix]cal: dtend is non-inclusive when specified as date w/o time
This commit is contained in:
parent
69a4bd850d
commit
c5ac688260
11
xsl/ical.xsl
11
xsl/ical.xsl
|
@ -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> </xsl:text>
|
||||
</xsl:if>
|
||||
|
|
11
xsl/xcal.xsl
11
xsl/xcal.xsl
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue