Bug #15540 Updated: erreo in date calculation with easter_date() for 2002

From: Date: Wed, 13 Feb 2002 14:34:06 +0000
Subject: Bug #15540 Updated: erreo in date calculation with easter_date() for 2002
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-250@lists.php.net to get a copy of this message
ID: 15540 Updated by: hholzgra@php.net Reported By: Pascal.Guimier@culture-alsace.org -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: winNT PHP Version: 4.1.1 New Comment: daylight saving time Previous Comments: ------------------------------------------------------------------------ [2002-02-13 08:44:12] Pascal.Guimier@culture-alsace.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... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15540&edit=1

« previous php.bugs (#250) next »