php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #766 The date function is buggy
Submitted: 1998-09-22 05:07 UTC Modified: 1998-09-22 05:43 UTC
From: patrick at dante dot urbanet dot ch Assigned:
Status: Closed Package: Other
PHP Version: 3.0.3 OS: Linux 2.0.35
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: patrick at dante dot urbanet dot ch
New email:
PHP Version: OS:

 

 [1998-09-22 05:07 UTC] patrick at dante dot urbanet dot ch
The date fonction have a bug. Each lines of the following code have the time inc. by 24*3600 second (one day). But if you look at the output, you can see a probleme. 

date("d/m/Y h/i/s",909180000) => 24/10/1998 12/00/00;
date("d/m/Y h/i/s",909266400) => 25/10/1998 12/00/00;
date("d/m/Y h/i/s",909352800) => 25/10/1998 11/00/00;
date("d/m/Y h/i/s",909439200) => 26/10/1998 11/00/00;

PLEASE, send me any patch when you have one.

Best regards.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-22 05:43 UTC] zeev
Welcome to a world where 24*3600 isn't always a day, a
world with standard time, daylight savings time, and
times to switch between the two.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 10:01:30 2024 UTC