mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
12 lines
292 B
PHP
12 lines
292 B
PHP
--TEST--
|
|
Bug #34304 (date('w') returns wrong number for sunday, 'N' modifier is missing)
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set("UTC");
|
|
echo date('o\-\WW\-N', strtotime('2 January 2005')), "\n";
|
|
echo date('o\-\WW\-N', strtotime('9 January 2005')), "\n";
|
|
?>
|
|
--EXPECT--
|
|
2004-W53-7
|
|
2005-W01-7
|