php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: webmaster at e-bnet dot com
New email:
PHP Version: OS:

 

 [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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-05 11:14 UTC] stas@php.net
Works for me (returns Monday). Maybe something wrong with your time or timezone?
 [2000-11-06 11:45 UTC] stas@php.net
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 May 04 14:01:32 2024 UTC