summaryrefslogtreecommitdiffstats
path: root/lib/rss.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-11-26 10:40:33 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-11-26 10:40:33 +0000
commit671a917abf53e013eeb68c51cd0fbaa30c6377dd (patch)
treeacbe14258b063a4ddb3df894851d8f6916f36cbb /lib/rss.php
parent9e73de9555b4f1873a9a08fdb6c23a2db6ad25da (diff)
downloadampache-671a917abf53e013eeb68c51cd0fbaa30c6377dd.tar.gz
ampache-671a917abf53e013eeb68c51cd0fbaa30c6377dd.tar.bz2
ampache-671a917abf53e013eeb68c51cd0fbaa30c6377dd.zip
fix non-rfc compliant pubdate on rss feed
Diffstat (limited to 'lib/rss.php')
-rw-r--r--lib/rss.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/rss.php b/lib/rss.php
index fb72022f..805d4d11 100644
--- a/lib/rss.php
+++ b/lib/rss.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright 2001 - 2006 Ampache.org
+ Copyright Ampache.org
All Rights Reserved
This program is free software; you can redistribute it and/or
@@ -22,9 +22,8 @@
@function show_now_playingRSS
@discussion creates a RSS fead for the now
playing information
+ FIXME: This needs to be updated, the whole rss stuff needs to be cleaned up
*/
-
-
function show_RSS ($type = 'artist',$username = 0) {
header ("Content-Type: application/xml");
$web_path = Config::get('web_path');
@@ -37,7 +36,7 @@ function show_RSS ($type = 'artist',$username = 0) {
$rss_popularsong_title = "Ampache Most Popular Songs";
$rss_recentlyplayed_title = "Ampache Recently Played";
- $today = date("d-m-Y");
+ $today = date("r",time());
echo "<rss version=\"2.0\">\n";