[pmwiki-users] Adding ctime=0
Martin Cuno
martin.cuno at posteo.de
Wed Feb 5 23:37:55 PST 2025
Hello Petko! I probably expressed myself badly, maybe google didn't translate well (sorry, I can't write well in English).
I have about 10k PmWiki pages. 2k of them may not have the ctime page key, for reasons you wrote here: https://www.pmwiki.org/wiki/PmWiki/PageVariables-Talk: "If the page file was created without the "ctime=" attribute -- either before it was added to PmWiki (Version 2.1.beta15 2005-12-28), or the file created by another program or a recipe -- the page will not have it set." I've seen that my question is exactly what I'm asking. You were thinking of a recipe back then.
If ctime isn't there, the current time is shown for me. If ctime=0, on the other hand, 1/1/1970 is shown. I would prefer the second one, and, as I said, I would like the files to be "complete".
What do you mean by "customisation" of ctime?
Oh, and:
Because no variable is provided for ctime by default (but why not, analogous to $LastModified ?), I wrote:
$FmtPV['$Createdcuno'] = 'date("d.m.Y-H:i", $page["ctime"])';
But this produces the above result.
Thanks! Martin
===== Ursprüngliche Nachricht =====
Von: Petko Yotov <5ko at 5ko.fr>
Am: 06.02.2025, 08:25:47 Uhr
Betreff: Re: [pmwiki-users] Adding ctime=0
The page key ctime is not set to $Now
--
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
www.avast.com
More information about the pmwiki-users
mailing list