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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Thu Mar 28 10:01:26 2024 UTC