summaryrefslogtreecommitdiff
path: root/extensions/ParserFunctions/funcsParserTests.txt
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/ParserFunctions/funcsParserTests.txt')
-rw-r--r--extensions/ParserFunctions/funcsParserTests.txt38
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 }}>