From b576bf6007ac6b93d744265712231431f9ddd6cd Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Mon, 13 Nov 2006 14:29:27 +0000 Subject: [PATCH] Fix timestamps in carnet RSS feed git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1073 839d8a87-29fc-0310-9880-83ba4fa771e5 --- ChangeLog | 3 ++- include/notifs.inc.php | 2 +- templates/carnet/rss.tpl | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 85d6d35..e8de078 100644 --- 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 diff --git a/include/notifs.inc.php b/include/notifs.inc.php index 714e97f..41ed1c6 100644 --- a/include/notifs.inc.php +++ b/include/notifs.inc.php @@ -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 diff --git a/templates/carnet/rss.tpl b/templates/carnet/rss.tpl index 23c041c..0fea0b0 100644 --- a/templates/carnet/rss.tpl +++ b/templates/carnet/rss.tpl @@ -66,7 +66,7 @@ {/if} ]]> - {$x->known|rss_date} + {$x.known|rss_date} {/foreach} {/foreach} -- 2.1.4