summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug34304.phpt
blob: 88030b7be5f7a9ede2249ff76a99f7fcbc1d262c (plain)
1
2
3
4
5
6
7
8
9
10
11
--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