#39106 [NEW]: date("w") incompatible with date("W")
| From: | felixmallek at gmx dot de | Date: | Tue, 10 Oct 2006 10:42:27 +0000 |
| Subject: | #39106 [NEW]: date("w") incompatible with date("W") | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-103349@lists.php.net to get a copy of this message | ||
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 http://bugs.php.net/?id=39106&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39106&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39106&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39106&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39106&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39106&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39106&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39106&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39106&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39106&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39106&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39106&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39106&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39106&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39106&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39106&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39106&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39106&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39106&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39106&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39106&r=mysqlcfg