|
Cookbook /
TimeZonesSummary: Display all dates and times in user selectable timezone and format
Version: 2007-10-28d
Prerequisites:
Status: alpha
Maintainer: Petko
Questions answered by this recipeCan 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. InstallationGet timezones.phpΔ, place it in your /cookbook/ directory and add to config.php the line: include_once("DescriptionDisplay 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 Notes1. 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 Release Notes2007-10-28c, d
2007-10-28
See AlsoContributors
Comments |