summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2025-06-02 21:17:21 +0000
committerwn_ <invalid@email.com>2025-06-03 14:10:08 +0000
commit814ab4816968d304069e7b4ee83856db2398c84f (patch)
treeb006b3807fa4d4274ccd37ed9ca3ceb7ef3de0ff /classes
parent446f9dcb23ea2d2802016e9452517d92fbd8543c (diff)
Use the current timestamp for feed-level 'updated' in 'Handler_Public#generate_syndicated_feed()'.
The last article's 'updated' value was not a good indicator of when the feed updated for various reasons, so we'll just use the current timestamp to represent the dynamic nature of the content.
Diffstat (limited to 'classes')
-rw-r--r--classes/Handler_Public.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/Handler_Public.php b/classes/Handler_Public.php
index 51cdb8266..17478c371 100644
--- a/classes/Handler_Public.php
+++ b/classes/Handler_Public.php
@@ -88,6 +88,7 @@ class Handler_Public extends Handler {
$tpl->readTemplateFromFile("generated_feed.txt");
$tpl->setVariable('FEED_TITLE', $feed_title, true);
+ $tpl->setVariable('FEED_UPDATED', date('c'), true);
$tpl->setVariable('VERSION', Config::get_version(), true);
$tpl->setVariable('FEED_URL', htmlspecialchars($feed_self_url), true);