Fixed the calendar generation, and updated some events to use the new awesomeness.
authorMichael Gregson <mgregson@csclub.uwaterloo.ca>
Fri, 27 Feb 2009 05:13:00 +0000 (00:13 -0500)
committerMichael Gregson <mgregson@csclub.uwaterloo.ca>
Fri, 27 Feb 2009 05:13:00 +0000 (00:13 -0500)
events.xml
xsl/ics.xsl

index 92b2337..09b8025 100644 (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>
index 80ce230..2e472a1 100644 (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>