xref: /PHP-5.6/ext/date/tests/bug34304.phpt (revision 77951494)
1--TEST--
2Bug #34304 (date('w') returns wrong number for sunday, 'N' modifier is missing)
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6echo date('o\-\WW\-N', strtotime('2 January 2005')), "\n";
7echo date('o\-\WW\-N', strtotime('9 January 2005')), "\n";
8?>
9--EXPECT--
102004-W53-7
112005-W01-7
12