[pmwiki-users] Insert current (stable) date
pkay42 at gmail.com
Thu Feb 15 12:55:01 CST 2018
I would guess your server time and your local time are off by 1 hour 1
minute, then. You have a few choices I can see:
1. hardcode a timezone into the wiki
2. accept local user time for whatever user/device - I think this
some such. Slightly tricker.
#1 might look something like
date_default_timezone_set('Mars/Phobos'); # or whereever - might also
change any logs in system, change CurrentTime if you like
$ROSPatterns['/(?<!~)~~~~~(?!~)/'] = strftime($TimeFmt, $Now);
On Wed, Feb 14, 2018 at 9:02 PM, Jim Syler <calion at mac.com> wrote:
> Thanks! But the time that inserts is one hour and one minute ahead of my local time. How do I fix that?
>> On Feb 14, 2018, at 5:51 PM, Petko Yotov <5ko at 5ko.fr> wrote:
>> Yes, you can enable ~~~~~ (5 tildes) to become the timestamp without the author name, add this in config.php:
>> $ROSPatterns['/(?<!~)~~~~~(?!~)/'] = &$CurrentTime;
>> BTW this markup is used in the default installation of MediaWiki (Wikipedia).
>> On 15/02/2018 00:29, Jim Syler wrote:
>>> Is there a way to insert the current date and/or time into a wiki
>>> page, and have it not change? The same way that ~~~~ inserts the date
>>> in a Talk page?
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users