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
 [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

Pull Requests

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: Wed Oct 30 22:01:28 2024 UTC