Date: Mon, 07 Aug 2006 13:20:11 +0100 From: Ceri Davies <ceri@submonkey.net> To: "www@FreeBSD.org" <www@FreeBSD.org> Cc: Johann Tonsing <jtonsing@fastmail.fm> Subject: Re: http://www.freebsd.org/events/events.ics Message-ID: <C0FCEE8B.12C17%ceri@submonkey.net> In-Reply-To: <bcdf206c55879bf6a0aab860cb00e9b4@fastmail.fm>
next in thread | previous in thread | raw e-mail | index | archive | help
> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3237801618_9253432 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit On 6/8/06 00:14, "Johann Tonsing" <jtonsing@fastmail.fm> wrote: > The icalendar file states that the come2linux event occurs only on 9 > September 2006. Kindly adjust the file to indicate that it occurs from > 9 to 10 September 2006. There's a longstanding bug in the icalendar generator that has all multi-day events ending a day early. Details attached; I still don't know how to fix it. Anyone? Ceri -- That must be wonderful! I don't understand it at all. -- Moliere --B_3237801618_9253432 Content-type: message/rfc822 Return-Path: <cyrus@shrike.private.submonkey.net> Received: from murder ([unix socket]) by shrike.private.submonkey.net (Cyrus v2.2.13) with LMTPA; Mon, 07 Aug 2006 13:19:44 +0100 X-Sieve: CMU Sieve 2.2 Received: from ceri by shrike.submonkey.net with local (Exim 4.63 (FreeBSD)) (envelope-from <ceri@submonkey.net>) id 1GA45A-00027u-Ca for ceri!imap@submonkey.net; Mon, 07 Aug 2006 13:19:44 +0100 Resent-From: ceri@submonkey.net Resent-Date: Mon, 7 Aug 2006 13:19:44 +0100 Resent-Message-ID: <20060807121944.GS89500@submonkey.net> Resent-To: ceri!imap@submonkey.net X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on shrike.private.submonkey.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL autolearn=ham version=3.1.0 Received: from mx2.freebsd.org ([216.136.204.119]) by shrike.submonkey.net with esmtp (Exim 4.52 (FreeBSD)) id 1EKhrU-000Kvy-Sb for ceri@submonkey.net; Wed, 28 Sep 2005 20:45:10 +0100 Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 27C845CAFC; Wed, 28 Sep 2005 19:42:11 +0000 (GMT) (envelope-from owner-freebsd-www@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 3B61D16A422; Wed, 28 Sep 2005 19:42:10 +0000 (GMT) (envelope-from owner-freebsd-www@freebsd.org) X-Original-To: www@FreeBSD.org Delivered-To: freebsd-www@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB45316A41F for <www@FreeBSD.org>; Wed, 28 Sep 2005 19:42:06 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-3-1-cust208.cdif.cable.ntl.com [82.31.78.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ADB443D48 for <www@FreeBSD.org>; Wed, 28 Sep 2005 19:42:06 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.52 (FreeBSD)) id 1EKhob-0004F1-Bt for www@FreeBSD.org; Wed, 28 Sep 2005 20:42:05 +0100 Date: Wed, 28 Sep 2005 20:42:05 +0100 From: Ceri Davies <ceri@submonkey.net> To: www@FreeBSD.org Message-ID: <20050928194205.GQ94010@submonkey.net> Mail-Followup-To: Ceri Davies <ceri@submonkey.net>, www@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nj4mAaUCx+wbOcQD" Content-Disposition: inline X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.9i Cc: Subject: Bug in events2ics.xml: calling out for a (XSL) hero X-BeenThere: freebsd-www@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Project Webmasters <freebsd-www.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-www>, <mailto:freebsd-www-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-www> List-Post: <mailto:freebsd-www@freebsd.org> List-Help: <mailto:freebsd-www-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-www>, <mailto:freebsd-www-request@freebsd.org?subject=subscribe> Sender: owner-freebsd-www@freebsd.org Errors-To: owner-freebsd-www@freebsd.org Resent-Sender: Ceri Davies <ceri@submonkey.net> Resent-Date: Mon, 07 Aug 2006 13:19:44 +0100 --Nj4mAaUCx+wbOcQD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable There is a bug in events2ics.xsl; an event lasting a number of days must have its end date set to the date after it ends in order to be shown correctly by a client. For example, EuroBSDCon starts on November 25th and ends on November 27th, so should have an event entry like this: BEGIN:VEVENT SEQUENCE:1 SUMMARY:EuroBSDCon 2005 URL;VALUE=3DURI:http://2005.eurobsdcon.org/ LOCATION:University of Basel, Basel, Switzerland DTSTART;VALUE=3DDATE:20051125 DTEND;VALUE=3DDATE:20051128 DESCRIPTION:The fourth annual European BSD Conference. It is... END:VEVENT However, the current implementation puts 20051127 in the date entry. To fix this, I need to implement a "date-plus-one-day" template, and I don't know how to do it. If anyone does, please let me know. If the correct fix is a whole mess of "if (month =3D=3D February && year !=3D leapyear && day =3D=3D 28) then = {day++, month++}" and so on then I can do that; just tell me to do it. To clarify for anyone still willing to help, the relevant part of events2ics.xsl is: <!-- Generate iCalendar DTSTART and DTEND entries --> <xsl:template name=3D"gen-ical-date-interval"> <xsl:param name=3D"startdate"/> <xsl:param name=3D"enddate"/> DTSTART;VALUE=3DDATE:<xsl:value-of select=3D"concat(startdate/year, format-number(startdate/month, '00'), format-number(startdate/day, '00'))"/> <xsl:if test=3D"number(startdate/month) !=3D number(enddate/month) or number(startdate/day) !=3D number(enddate/day) or number(startdate/year) !=3D number(enddate/year)"> DTEND;VALUE=3DDATE:<xsl:value-of select=3D"concat(enddate/year, format-number(enddate/month, '00'), format-number(enddate/day, '00'))"/> </xsl:if> </xsl:template> I need to replace this template with: <!-- Generate iCalendar DTSTART and DTEND entries --> <xsl:template name=3D"gen-ical-date-interval"> <xsl:param name=3D"startdate"/> <xsl:param name=3D"enddate"/> DTSTART;VALUE=3DDATE:<xsl:value-of select=3D"concat(startdate/year, format-number(startdate/month, '00'), format-number(startdate/day, '00'))"/> <xsl:if test=3D"number(startdate/month) !=3D number(enddate/month) or number(startdate/day) !=3D number(enddate/day) or number(startdate/year) !=3D number(enddate/year)"> DTEND;VALUE=3DDATE:<xsl:call-template select=3D"date-plus-one-day"> <xsl:with-param value=3D"enddate" /> </xsl:call-template> </xsl:if> </xsl:template> and I need help writing the "date-plus-one-day" template. Cheers, Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --Nj4mAaUCx+wbOcQD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDOvINocfcwTS3JF8RAqGNAJ92hF5lHyDnNQYgq6E5Eqke7XfXuACgmZHQ uPoqSm1e/ReXm9Z7CI3IBfo= =WOBa -----END PGP SIGNATURE----- --Nj4mAaUCx+wbOcQD-- --B_3237801618_9253432--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C0FCEE8B.12C17%ceri>