From 8d18563d0fce94fd6b2031fd6ddc0f34a291a621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti-Jussi=20Nyg=C3=A5rd?= Date: Sat, 27 Jun 2026 09:42:31 +0300 Subject: [PATCH] Use a valid date format in rss2 pubDate --- templates/rss2.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/rss2.tpl b/templates/rss2.tpl index f21e2e9..889ce2a 100644 --- a/templates/rss2.tpl +++ b/templates/rss2.tpl @@ -39,7 +39,8 @@ {$context->getData('supportEmail')|strip|escape:"html"}{if $context->getData('contactName')} ({$context->getData('supportName')|strip|escape:"html"}){/if} {/if} - {$latestDate|date_format:$smarty.const.DATE_RSS} + {capture assign="latestDate"}{$latestDate|strtotime}{/capture} + {$smarty.const.DATE_RSS|date:$latestDate} {* *} {* *} @@ -88,7 +89,8 @@ getData('accessStatus')) && $publication->isCCLicense()}rdf:resource="{$publication->getData('licenseUrl')|escape}"{/if} /> {url page=$publicationPage op=$publicationOp path=$publication->getData('urlPath')|default:$submission->getId()} - {$publication->getData('datePublished')|date_format:$smarty.const.DATE_RSS} + {capture assign="datePublished"}{$publication->getData('datePublished')|strtotime}{/capture} + {$smarty.const.DATE_RSS|date:$datePublished} {/foreach}{* articles *}