|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39106 date("w") incompatible with date("W")
Submitted: 2006-10-10 10:42 UTC Modified: 2006-10-10 10:53 UTC
From: felixmallek at gmx dot de Assigned:
Status: Not a bug Package: Calendar related
PHP Version: 5.1.6 OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
28 - 14 = ?
Subscribe to this entry?

 [2006-10-10 10:42 UTC] felixmallek at gmx dot de
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.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-10 10:53 UTC]
Expected and well documented behaviour, no bug here.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 09:01:27 2024 UTC