diff comment.php @ 33:c6508503269a

Possibilité d'avoir les dates en ISO 8601, requis par Atom.
author Franck Deroche <webmaster@defr.org>
date Mon, 05 Nov 2007 09:23:40 +0100
parents 4cea8b128fdd
children a6c3716cab6a
line wrap: on
line diff
--- a/comment.php	Mon Nov 05 09:06:46 2007 +0100
+++ b/comment.php	Mon Nov 05 09:23:40 2007 +0100
@@ -49,6 +49,7 @@
       while(0 !== ($row = $Data->GetRow())) {
 	    $commentTpl = new Template(Skeleton::getTemplateFile('comment'));
         $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment']));
+        $dateFormateeISO = date('c', strtotime($row['DateComment']));
         $AdresseMail = $row['AdresseMail'];
         $grav_id = md5($AdresseMail);
         $grav_url = 'http://www.gravatar.com/avatar.php?gravatar_id=' . $grav_id . '&size=50&default=' . $defaultGravatar;
@@ -62,6 +63,7 @@
 		  '#auteur@name' => 'c' . $row['num_comm'],
 		  '#auteur' => $row['Auteur'],
 		  'commentDate' => $dateFormatee,
+		  'commentDateISO' => $dateFormateeISO,
 		  'commentNumber' => $row['num_comm'],
 		  'comment' => $commentFrag,
 	    );