php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15540 erreo in date calculation with easter_date() for 2002
Submitted: 2002-02-13 08:44 UTC Modified: 2002-02-13 09:34 UTC
From: Pascal dot Guimier at culture-alsace dot org Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.1.1 OS: winNT
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Pascal dot Guimier at culture-alsace dot org
New email:
PHP Version: OS:

 

 [2002-02-13 08:44 UTC] Pascal dot Guimier at culture-alsace dot org
the result of : 
---------
<?
print "easter in 2002 : ";
print date("m/d/Y H:i:s", easter_date(2002));
print "<br>easter monday : ";
print date("m/d/Y H:i:s", easter_date(2002)+(1*3600*24));
print "<br>easter in 2001 : ";
print date("m/d/Y H:i:s", easter_date(2001));
print "<br>easter monday : ";
print date("m/d/Y H:i:s", easter_date(2001)+(1*3600*24));
print "<br>";
?>
---------

gives : 
---------
easter in 2002 : 03/31/2002 00:00:00
easter monday : 04/01/2002 01:00:00
easter in 2001 : 04/15/2001 00:00:00
easter monday : 04/16/2001 00:00:00
---------

as if in 2002 the easter day is only of 23 hours...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-13 09:34 UTC] hholzgra@php.net
daylight saving time
 [2002-02-13 10:00 UTC] Pascal dot Guimier at culture-alsace dot org
>[13 Feb 9:34am] hholzgra@php.net
>daylight saving time
Quite true ! it's not a bug finally !
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 01 03:00:01 2025 UTC