Fix timestamps in carnet RSS feed
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 13 Nov 2006 14:29:27 +0000 (14:29 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 13 Nov 2006 14:29:27 +0000 (14:29 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1073 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
include/notifs.inc.php
templates/carnet/rss.tpl

index 85d6d35..e8de078 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,9 +8,10 @@ New:
 
     * Carnet:
         - Add a vcard of all the contacts                                  -FRU
+        - Fix timestamp in RSS feed                                        -FRU
 
     * Events:
-        - Add author in RSS                                                -FRU
+        - Add author and event id in RSS feed                              -FRU
 
     * Xnet:
         - Add a vcard of all the members of a group                        -FRU
index 714e97f..41ed1c6 100644 (file)
@@ -197,7 +197,7 @@ class Notifs {
             $this->_cats[$tmp['id']] = $tmp;
         }
 
-        $lastweek = date('YmdHis',mktime() - 7*24*60*60);
+        $lastweek = date('YmdHis', time() - 7*24*60*60);
 
         // recupere les notifs du watcher $uid, sans detail sur le watcher,
         // depuis la semaine dernière, meme ceux sans surveillance, ordonnés
index 23c041c..0fea0b0 100644 (file)
@@ -66,7 +66,7 @@
         </a>
         {/if}
         ]]></description>
-      <pubDate>{$x->known|rss_date}</pubDate>
+      <pubDate>{$x.known|rss_date}</pubDate>
     </item>
     {/foreach}
     {/foreach}