cvs: php-src /ext/standard/tests/time bug20382.phpt
| From: | Derick Rethans | Date: | Thu, 08 Apr 2004 16:17:35 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/time bug20382.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-27015@lists.php.net to get a copy of this message | ||
derick Thu Apr 8 12:17:35 2004 EDT
Added files:
/php-src/ext/standard/tests/time bug20382.phpt
Log:
- Added test and not the diff ;-)
http://cvs.php.net/co.php/php-src/ext/standard/tests/time/bug20382.phpt?r=1.1&p=1
Index: php-src/ext/standard/tests/time/bug20382.phpt
+++ php-src/ext/standard/tests/time/bug20382.phpt
--TEST--
Bug #20382 (strtotime ("Monday", $date) produces wrong result on DST changeover)
--FILE--
<?php
putenv("TZ=Europe/Amsterdam");
$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