X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fadmin%2Frss.php;h=9a9187adeb3677646f889bb3a0380e3b79cee566;hb=4ae77f9e9185e6fb547d32281bb2aef6f299841e;hp=13c72aa068689e3115077d8224ce5e2d4c46d764;hpb=079abc36d07da9049a0e1ae1878238a66d4d8bc8;p=diogenes.git diff --git a/include/admin/rss.php b/include/admin/rss.php index 13c72aa..9a9187a 100644 --- a/include/admin/rss.php +++ b/include/admin/rss.php @@ -18,11 +18,11 @@ foreach($event_arr as $event) if ($event['flags'] & EVENT_FLAG_PUBLIC) { $item = $event; - $item['date'] = gmstrftime("%a, %d %b %Y %T %Z", $event['stamp']); + $item['date'] = gmstrftime("%a, %d %b %Y %T %Z", strtotime($event['stamp'])); $item['title'] .= " : ". $item['opfile']; $page->append('items', $item); } } -header("Content-Type: text/xml"); +header("Content-Type: application/rss+xml"); $page->display('', 'admin-rss.tpl'); ?>