note 103809 added to function.easter-date
| From: | sem dot radi at gmail dot com | Date: | Wed, 04 May 2011 17:11:20 +0000 |
| Subject: | note 103809 added to function.easter-date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179426@lists.php.net to get a copy of this message | ||
Bug in function easter_date on php 5.3.5.
If you try something like this:
print(date("M-d-Y", easter_date(2011)));
your result will be "Apr-23-2011" and that's wrong.
I try this function with another year and a get also wrong result. This function subtract 1 day like
in this case above (Apr-24-2011)
----
Server IP: 69.147.83.197
Probable Submitter: 89.17.1.217
----
Manual Page -- http://www.php.net/manual/en/function.easter-date.php
Edit -- https://master.php.net/note/edit/103809
Del: integrated -- https://master.php.net/note/delete/103809/integrated
Del: useless -- https://master.php.net/note/delete/103809/useless
Del: bad code -- https://master.php.net/note/delete/103809/bad+code
Del: spam -- https://master.php.net/note/delete/103809/spam
Del: non-english -- https://master.php.net/note/delete/103809/non-english
Del: in docs -- https://master.php.net/note/delete/103809/in+docs
Del: other reasons-- https://master.php.net/note/delete/103809
Reject -- https://master.php.net/note/reject/103809
Search -- https://master.php.net/manage/user-notes.php