aboutsummaryrefslogtreecommitdiff
path: root/rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'rss.php')
-rw-r--r--rss.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/rss.php b/rss.php
index 25fb3b8..7a4eca8 100644
--- a/rss.php
+++ b/rss.php
@@ -20,14 +20,15 @@
$plusfile = preg_replace('/ /', '+', $file);
$dashfile = preg_replace('/ /', '-', $file);
$stat = stat("{$blogPosts}$file");
- $date = date(DATE_ATOM, $stat['mtime']);
+ $time = $stat['mtime'];
+ $date = date(DATE_ATOM, $time);
$post = file_get_contents("{$blogPosts}$file");
$post = preg_replace('/\r?\n/', "<br>\n", $post);
echo "\t<entry>\n";
echo "\t\t<title>$file</title>\n";
echo "\t\t<link href=\"http://{$_SERVER['SERVER_NAME']}{$blogRoot}post/{$plusfile}\" />\n";
- echo "\t\t<id>tag:{$_SERVER['SERVER_NAME']}," . date("Y-m-d") . ":{$blogRoot}{$dashfile}</id>\n";
+ echo "\t\t<id>tag:{$_SERVER['SERVER_NAME']}," . date("Y-m-d", $time) . ":{$blogRoot}{$dashfile}</id>\n";
echo "\t\t<updated>$date</updated>\n";
echo "\t\t<summary type=\"html\"><![CDATA[";
echo summarise($post);