Fixed the calendar generation, and updated some events to use the new awesomeness.

This commit is contained in:
Michael Gregson 2009-02-27 00:13:00 -05:00
parent 13163a8686
commit 7b690c9a84
2 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,8 @@
<!-- Winter 2009 -->
<eventitem date="2009-03-12" time="8:00 AM" room="Toronto Hilton" title="Canadian Undergraduate Technology Conference">
<eventitem date="2009-03-12" time="8:00 AM" edate="2009-03-13" etime="9:00 PM"
room="Toronto Hilton" title="Canadian Undergraduate Technology Conference">
<short>
<p>
See <a href="http://www.cutc.ca">cutc.ca</a> for more details.
@ -54,7 +55,7 @@
TBA</p></abstract>
</eventitem>
<eventitem date="2009-02-27" time="5:00 PM" room="CSC Office: MC3036" title="Dooly's Night">
<eventitem date="2009-02-27" time="5:00 PM" etime="7:00 PM" room="CSC Office: MC3036" title="Dooly's Night">
<short><p>
Come join the CSC as we head to Dooly's.</p></short>
<abstract><p>

View File

@ -30,11 +30,11 @@ UID:<xsl:value-of select="$start" />@csclub.uwaterloo.ca
SEQUENCE:11
DTSTART:<xsl:value-of select="$start" />
<xsl:choose>
<xsl:when test="@edate and @etime">
<xsl:when test="(string(@edate) != '') and (string(@etime) != '')">
<xsl:variable name="end" select="csc:ical-datetime(@edate, @etime)" />
DTEND:<xsl:value-of select="$end" />
</xsl:when>
<xsl:when test="string(@etime)">
<xsl:when test="string(@etime) != ''">
<xsl:variable name="end" select="csc:ical-datetime(@date, @etime)" />
DTEND:<xsl:value-of select="$end" />
</xsl:when>