01494: deprecated gmstrftime() in feeds.php

Summary: deprecated gmstrftime() in feeds.php
Created: 2023-09-28 08:30
Status: Closed, fixed for 2.3.26
Category: Bug
From: tictactux
Assigned:
Priority: 3
Version: 2.3.25
OS: php 8.1.2

Description: running ?action=rss on any page yields

XML Parsing Error: junk after document element Location: http://localhost:8080/index.php/Site/AllRecentChanges?action=rss Line Number 2, Column 1: <b>Deprecated</b>: Function gmstrftime() is deprecated in <b>/data/html/pmwiki-2.3.25/scripts/feeds.php</b> on line <b>233</b><br /> ^

i.e. php spits out an error message and messes up the XML.

replacing line 233 with

 $FmtV['$ItemISOTime'] = PSFT($TimeISOZFmt, $page['time'], null, 'GMT');

seems to do the trick. tictactux

Thanks for the report, fixed for 2.3.26. --Petko