From ddf5eebee1b6ce706c4d7fa78c66e1e13abc3821 Mon Sep 17 00:00:00 2001 From: Nathan Lasseter Date: Mon, 9 Jun 2014 12:47:30 +0000 Subject: Fixed RSS feed and changed title from archives.php to posts --- rss.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rss.php') 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/', "
\n", $post); echo "\t\n"; echo "\t\t$file\n"; echo "\t\t\n"; - echo "\t\ttag:{$_SERVER['SERVER_NAME']}," . date("Y-m-d") . ":{$blogRoot}{$dashfile}\n"; + echo "\t\ttag:{$_SERVER['SERVER_NAME']}," . date("Y-m-d", $time) . ":{$blogRoot}{$dashfile}\n"; echo "\t\t$date\n"; echo "\t\t