TimeZonePF
From Charlie.Huggardlee.Net
| Mediawiki Extension |
|
Author: Charlie Huggard License: CC by-nc-sa 3.0 Download: Link
|
TimeZonePF is a Parser Variable extension that spawned out of frustration with Bug 12815 where the time zone indicator for signature generated timestamps would be correctly CST (this wiki's $wgLocaltimezone is "America/Chicago"), but the reported datetime stamp would be UTC effectively placing all signature timestamps 6 hours in the future. Using this extension with ParserFunctions enables one to generate their own signatures.
Provided Variables
- {{timezone}}
- The non-local timezone abbreviation, On this wiki: UTC
- {{timezonel}}
- The appropriate $wgLocaltimezone timezone abbreviation, On this wiki: CDT
- {{sigtime}}
- The appropriate format flags needed to generate a signature timestamp, On this wiki: H:i, j F Y
Usage for Signatures
Combining time/timel from ParserFunctions and these functions, you can make an equivalent of ~~~~~ by doing {{subst:#timel:{{subst:sigtime}}}} ({{subst:timezonel}}) or for a UTC signature {{subst:#time:{{subst:sigtime}}}} ({{subst:timezone}}).
- Local: 14:08, 9 September 2010 (CDT)
- UTC: 19:08, 9 September 2010 (UTC)
Known Bugs
- This extension is affected by Bug 12837 and therefore should be changed if/when that bug is resolved. Fortunately I don't have any other Parser Variable extensions installed.
- My original plan for this was to implement this as a series of parser functions, therefore the name TimeZonePF was appropriate ("PF" = "parser functions"). In toying with it, a parser variable extension seemed more appropriate, but I didn't feel like refactoring the name as well, so it's technically a misnomer.
or read what others have said
Facts about TimeZonePFRDF feed
| Author | Charlie Huggard + |
| Download | http://charlie.huggardlee.net/downloads/mediawiki/extensions/TimeZonePF.php + |
| License | CC by-nc-sa 3.0 + |

