Author: anon.hui
Description:
Add localtime conversion capability to LOCAL{TIMESTAMP,YEAR,...} variable
- {{LOCALTIMESTAMP}}: current local time stamp in iso-8601 format
- {{LOCALTIMESTAMP:''UTC time in ISO-8601 format''}}: convert the specified UTC time to local time stamp
Example
If user's timezone preference is +0900,
- {{LOCALTIMESTAMP:20080527160000}} --> 20080528010000
- {{LOCALYEAR:20080527160000}} --> 2008
- {{LOCALMONTH:20080527160000}} --> 05
- {{LOCALDAY:20080527160000}} --> 28
Add {CURRENT,LOCAL}USERTIMESTAMP variable
- {{...USERTIMESTAMP}}: format the time according to current user's date format preference
Example
- {{CURRENTUSERTIMESTAMP}} --> 16:25, 27 May 2008 (UTC)
- {{LOCALUSERTIMESTAMP}} --> 01:25, 28 May 2008 (XXX)
- {{LOCALUSERTIMESTAMP:20080527160000}} --> 01:00, 28 May 2008 (XXX)
Apply this to default signature expansion
- ~~~~ --> User123 (talk) {{LOCALUSERTIMESTAMP:20080527160000}}
This will be useful that,
- the readers will see the signature's timestamp in their prefer timezone and format
- the signature's timezone and format will be consistent with what shown in revision history
Version: 1.13.x
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Bugzilla/14286