summaryrefslogtreecommitdiff
path: root/ext/date/tests/date.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/date.phpt')
-rw-r--r--ext/date/tests/date.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/date/tests/date.phpt b/ext/date/tests/date.phpt
new file mode 100644
index 0000000000..87cae0b310
--- /dev/null
+++ b/ext/date/tests/date.phpt
@@ -0,0 +1,22 @@
+--TEST--
+date() function
+--FILE--
+<?php
+$tmp = "cr";
+putenv ("TZ=GMT0");
+
+for($a = 0;$a < strlen($tmp); $a++){
+ echo $tmp{$a}, ': ', date($tmp{$a}, 1043324459)."\n";
+}
+
+putenv ("TZ=MET");
+
+for($a = 0;$a < strlen($tmp); $a++){
+ echo $tmp{$a}, ': ', date($tmp{$a}, 1043324459)."\n";
+}
+?>
+--EXPECT--
+c: 2003-01-23T12:20:59+00:00
+r: Thu, 23 Jan 2003 12:20:59 +0000
+c: 2003-01-23T13:20:59+01:00
+r: Thu, 23 Jan 2003 13:20:59 +0100