2006 => 2007 Happy New Year\!
[platal.git] / templates / carnet / calendar.tpl
index 0e3b207..c477d5c 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}\r
 {*                                                                        *}\r
-{*  Copyright (C) 2003-2006 Polytechnique.org                             *}\r
+{*  Copyright (C) 2003-2007 Polytechnique.org                             *}\r
 {*  http://opensource.polytechnique.org/                                  *}\r
 {*                                                                        *}\r
 {*  This program is free software; you can redistribute it and/or modify  *}\r
@@ -29,9 +29,10 @@ X-WR-TIMEZONE:Europe/Paris
 {foreach from=$events item=e}\r
 BEGIN:VEVENT\r
 DTSTAMP:{$e.timestamp|date_format:"%Y%m%dT%H%M%SZ"}\r
-DTSTART;VALUE=DATE:{$e.date|date_format:"%Y%m%d"}\r
-DTEND;VALUE=DATE:{$e.tomorrow|date_format:"%Y%m%d"}\r
-UID:anniv-{$e.date|date_format:"%Y%m%d"}-{$e.bestalias}@polytechnique.org\r
+DTSTART;VALUE=DATE:{$e.date}\r
+DTEND;VALUE=DATE:{$e.tomorrow}\r
+UID:anniv-{$e.date}-{$e.forlife}@polytechnique.org\r
+RRULE:FREQ=YEARLY;INTERVAL=1\r
 CLASS:PUBLIC\r
 {display_ical name="summary" value=$e.summary}\r
 END:VEVENT\r