[Pmwiki-users] Setting time zones and tracking authorship
Patrick R. Michaud
Thu Sep 4 00:24:40 CDT 2003
(a) Normally you can change the timezone by changing the contents of the
TZ environment variable. For example, I set my timezone to CST/CDT
by adding the following to local.php:
which says that the CST/CDT timezone is 6 hours away from UTC. Other
U.S. timezone values are: EST5EDT, CST6CDT, MST7MDT, and PST8PDT.
(b) Although the IP information of each edit is currently stored with each
page, at present there isn't a way to access it from within a page. I'm
already planning to add per-revision tracking of the IP address as part of
author tracking. I'll add [[$LastModifiedIP]] to the next release of
PmWiki, and [[$LastModifiedAuthor]] when author tracking is implemented.
On Wed, Sep 03, 2003 at 10:42:47PM -0700, pmwiki at mdrain.mailshell.com wrote:
> Greetings. I've just started to use PmWiki (I love it!) and have a couple of questions:
> (a) Is it possible to change the time zone for the $LastModified variable or for $TimeFmt? I can't find any discussion of this. I'm new to PHP, so this is probably a trivial question. I tried adding $LastModified = strftime($TimeFmt,$Now+2); and $LastModified = strftime($TimeFmt,$Now+7200); to my local.php file to add two hours to time that's posted, but it didn't change the time, and there wasn't even an error.
> (b) I've been following the discussion on the TrackAuthorship Development page since I would like this feature. However, I'd be happy with the ability to add the stored IP address to footers without resolving the hosts (e.g., "Page last modified ... by X"). Is there anyway now that we can define and use a variable for the IP address that's stored with each page?
> The FREE service that prevents junk email http://www.mailshell.com
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
More information about the pmwiki-users