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

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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC