diff options
Diffstat (limited to 'ext/date/tests/bug20382-1.phpt')
| -rw-r--r-- | ext/date/tests/bug20382-1.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/date/tests/bug20382-1.phpt b/ext/date/tests/bug20382-1.phpt new file mode 100644 index 0000000..e81ac20 --- /dev/null +++ b/ext/date/tests/bug20382-1.phpt @@ -0,0 +1,17 @@ +--TEST-- +Bug #20382 [1] (strtotime ("Monday", $date) produces wrong result on DST changeover) +--INI-- +date.timezone=Europe/Amsterdam +--FILE-- +<?php + $tStamp = mktime (17, 17, 17, 10, 27, 2004); + echo "tStamp=". date("l Y-m-d H:i:s T", $tStamp). "\n"; + + $strtotime_timestamp = strtotime ("Monday", $tStamp); + echo "result=". date("l Y-m-d H:i:s T", $strtotime_timestamp). "\n"; + echo "wanted=Monday 2004-11-01 00:00:00 CET\n"; +?> +--EXPECT-- +tStamp=Wednesday 2004-10-27 17:17:17 CEST +result=Monday 2004-11-01 00:00:00 CET +wanted=Monday 2004-11-01 00:00:00 CET |
