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
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: 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