Accéder au contenu.
Menu Sympa

devel - [Devel] r237 - trunk

Objet : devel-adl

Archives de la liste

[Devel] r237 - trunk


Chronologique Discussions 
  • From: svn AT agendadulibre.org
  • To: devel AT agendadulibre.org
  • Subject: [Devel] r237 - trunk
  • Date: Tue, 23 Jan 2007 21:47:37 +0100 (CET)
  • List-archive: <http://lolut.utbm.info/pipermail/devel>
  • List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>

Author: thomas
Date: Tue Jan 23 21:47:36 2007
New Revision: 237

Modified:
trunk/rss.php

Log:
Ajout de la date dans le titre des éléments du flux RSS.



Modified: trunk/rss.php
==============================================================================
--- trunk/rss.php (original)
+++ trunk/rss.php Tue Jan 23 21:47:36 2007
@@ -117,13 +117,18 @@

while ($event = mysql_fetch_object($list))
{
+ $start_timestamp = date_mysql2timestamp($event->start_time);
+
echo " <item rdf:about=\"" . calendar_absolute_url("showevent.php?id=" .
$event->id) . "\">\n";
- echo " <title>" . xmlentities($event->city) . " : " .
xmlentities($event->title) . "</title>\n";
+ echo " <title>" . xmlentities($event->city) . " : " .
+ xmlentities($event->title) . ", " .
+ onlyday_timestamp2humanreadable($start_timestamp) .
+ "</title>\n";
echo " <link>" . calendar_absolute_url("showevent.php?id=" . $event->id)
. "</link>\n";
echo " <guid>" . $event->id . "@agendadulibre.org</guid>";
$evt_timezone = ereg_replace("^\+([0-9][0-9])([0-9][0-9])$", "+\\1:\\2",
- date('O',
date_mysql2timestamp($event->start_time)));
- $evt_date = date('Y-m-d\TH:i',
date_mysql2timestamp($event->start_time));
+ date('O', $start_timestamp));
+ $evt_date = date('Y-m-d\TH:i', $start_timestamp);
echo " <dc:date>" . $evt_date . $evt_timezone . "</dc:date>\n";
echo " <description>\n";





  • [Devel] r237 - trunk, svn, 23/01/2007

Archives gérées par MHonArc 2.6.16.

Haut de le page