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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 00:01:36 2025 UTC