Questions answered by this recipe
Can I display all timestamps on PmWiki (last modified times in recent changes, page history or pagelists, or in user signatures) in my own time zone? Calculating time differences to know how long ago the page was modified is annoying, especially if I work on several wikis in different timezones.
Can I also select my own time format? In the US, dates are written Month/Day/Year, while in Europe it is Day/Month/Year and it may be very confusing. Also, some users prefer a 24-hours-clock instead of 12-hours plus AM/PM.
Note, the development of this recipe is suspended. Check out the newer recipe Cookbook:LocalTimes.
Display all dates and times (in recent changes, pagelists, signatures) in user selectable timezone and format.
This recipe will be usefull to people working collaborately on one wiki, while being located in different parts of the world and in different timezones.
Users call a new wiki "action", like
Every date and time value, for example in RecentChanges, is replaced with a human readable timestamp in the UTC time zone like this:
If a user signs his message on discussion pages (with
The existing page variable
The new markup
1. Only timestamps added after the installation of the recipe can be displayed in user-selectable formats. This means, RecentChanges entries for newly modified pages, and new signed comments. On the other hand, the
2. Currently the timestamps in the page history cannot be modified without a change to pagerev.php from the pmwiki core distribution. With the current version, page histories are displayed at servertime and with the default