mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-23 15:57:10 +00:00
Proper timezone tests
Bug: T223772 Depends-On: I8498527c276288feae854868a8f4b1f3205a49e8 Change-Id: Ibdc51f607042b74c648367f05066c8297f3cf0a1
This commit is contained in:
parent
8a845602ec
commit
806ba2f110
|
@ -105,6 +105,26 @@ Explicitly specified output language (Dutch)
|
|||
</p>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
#timel: UTC
|
||||
!! wikitext
|
||||
{{#timel: Y-m-d H:i | 15 January 2001}}
|
||||
!! html
|
||||
<p>2001-01-15 00:00
|
||||
</p>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
#timel: Melbourne
|
||||
!! options
|
||||
wgLocaltimezone=Australia/Melbourne
|
||||
!! wikitext
|
||||
{{#timel: Y-m-d H:i | 16 January 2001}}
|
||||
!! html
|
||||
<p>2001-01-16 11:00
|
||||
</p>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
#timef: one parameter
|
||||
!! wikitext
|
||||
|
@ -162,11 +182,13 @@ language=ja
|
|||
!! end
|
||||
|
||||
!! test
|
||||
#timefl: one parameter (can't actually customise timezone)
|
||||
#timefl: one parameter
|
||||
!! options
|
||||
wgLocaltimezone=Australia/Melbourne
|
||||
!! wikitext
|
||||
{{#timefl:15 January 2001}}
|
||||
{{#timefl:17 January 2001}}
|
||||
!! html
|
||||
<p>00:00, 15 January 2001
|
||||
<p>11:00, 17 January 2001
|
||||
</p>
|
||||
!! end
|
||||
|
||||
|
|
Loading…
Reference in a new issue