From fec1c016c4605fa62c573e97f02b68ca205c0ca3 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 8 May 2009 21:14:22 -0700 Subject: [PATCH] php has a constant for this --- contrib/rss_comments/main.php | 2 +- contrib/rss_images/main.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/rss_comments/main.php b/contrib/rss_comments/main.php index 6ef68a39..52fbead3 100644 --- a/contrib/rss_comments/main.php +++ b/contrib/rss_comments/main.php @@ -50,7 +50,7 @@ class RSS_Comments implements Extension { $comment_id = $comment['comment_id']; $link = make_link("post/view/$image_id"); $owner = html_escape($comment['user_name']); - $posted = strftime("%a, %d %b %Y %T %Z", $comment['posted_timestamp']); + $posted = date(DATE_RSS, $comment['posted_timestamp']); $comment = html_escape($comment['comment']); $content = html_escape("$owner: $comment"); diff --git a/contrib/rss_images/main.php b/contrib/rss_images/main.php index 6eae945b..69229740 100644 --- a/contrib/rss_images/main.php +++ b/contrib/rss_images/main.php @@ -64,7 +64,7 @@ class RSS_Images implements Extension { $owner = $image->get_owner(); $thumb_url = $image->get_thumb_link(); $image_url = $image->get_image_link(); - $posted = strftime("%a, %d %b %Y %T %Z", $image->posted_timestamp); + $posted = date(DATE_RSS, $image->posted_timestamp); $content = html_escape( "

" . Themelet::build_thumb_html($image) . "

" . "

Uploaded by " . $owner->name . "

"