diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-04-26 18:23:31 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-04-26 18:23:31 +0200 |
commit | c4372dd38a4d109b4f3881ea63b667e33adbe503 (patch) | |
tree | e8e6dae1229a68c26b7a348c73dc0c8c77da97e5 /extensions/ParserFunctions/funcsParserTests.txt | |
parent | cf566324cfb218f0c7323d97d2a103bbb8d60ba4 (diff) |
Update to MediaWiki 1.18.3
Diffstat (limited to 'extensions/ParserFunctions/funcsParserTests.txt')
-rw-r--r-- | extensions/ParserFunctions/funcsParserTests.txt | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/extensions/ParserFunctions/funcsParserTests.txt b/extensions/ParserFunctions/funcsParserTests.txt index ef2c1f38..a741836a 100644 --- a/extensions/ParserFunctions/funcsParserTests.txt +++ b/extensions/ParserFunctions/funcsParserTests.txt @@ -22,7 +22,7 @@ blah blah !! endarticle !! test -Input times should probably be UTC, not local time +Input times are UTC, not local time !! input {{#time:c|15 January 2001}} !!result @@ -58,6 +58,42 @@ Time test after the 2038 32-bit Apocalype !! end !! test +Explicitly specified timezone: UTC +!! input +{{#time:Y-m-d H:i| 2011-11-12 23:00 UTC }} +!! result +<p>2011-11-12 23:00 +</p> +!! end + +!! test +Explicitly specified timezone: Europe/Paris (UTC+1) +!! input +{{#time:Y-m-d H:i| 2011-11-12 23:00 Europe/Paris }} +!! result +<p>2011-11-12 22:00 +</p> +!! end + +!! test +Explicitly specified timezone: America/New_York (UTC-5) +!! input +{{#time:Y-m-d H:i| 2011-11-12 23:00 America/New_York }} +!! result +<p>2011-11-13 04:00 +</p> +!! end + +!! test +Explicitely specified output language (Dutch) +!! input +{{#time:d F Y|1988-02-28|nl}} +!! result +<p>28 februari 1988 +</p> +!! end + +!! test Bug 19093: Default values don't fall through in switch !! input <{{#switch: foo | bar | #default = DEF }}> |