|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7627 pb with getdate()
Submitted: 2000-11-03 12:55 UTC Modified: 2000-11-06 11:45 UTC
From: webmaster at e-bnet dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.3pl1 OS: All
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:
44 + 37 = ?
Subscribe to this entry?

 [2000-11-03 12:55 UTC] webmaster at e-bnet dot com
when trying to get the week day for october 30 2000, the function return a Sunday instead of a monday

  $Tday = mktime(0,0,0,10,30,2000);
  $Jour = getdate($TDay);
  echo $Jour["wday"];
result : 6


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-05 11:14 UTC]
Works for me (returns Monday). Maybe something wrong with your time or timezone?
 [2000-11-06 11:45 UTC]
User feedback:
I've found the pb, it's due to the winter hour change.

Thus closing.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Feb 24 23:01:27 2024 UTC