From: felixmallek at gmx dot de
Operating system: n/a
PHP version: 5.1.6
PHP Bug Type: *Calendar problems
Bug description: date("w") incompatible with date("W")

Description:
------------
Hi,
I'm creating a calendar using the date() function.
I want to show in this calendar the Week-number, but there are two
different standarts:
1) date("w") has Sunday as the first day of the week
2) date("W") has Monday as the first day of the week

I think it's rubbish because the different standarts makes a calendar
awkward.

I think it would be not bad to edit one of standarts in the next Version
of PHP or in one of the following updates.

Thanks
Felix



--
Edit bug report at [url]http://bugs.php.net/?id=39106&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39106&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39106&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39106&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39106&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=39106&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=39106&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39106&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=39106&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=39106&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=39106&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=39106&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=39106&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=39106&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39106&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=39106&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=39106&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39106&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=39106&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39106&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39106&r=mysqlcfg[/url]