ID: 40213 User updated by: oliver dot block at lycos dot de Reported By: oliver dot block at lycos dot de Status: Open Bug Type: Calendar related Operating System: Linux PHP Version: 5.2.1RC3 New Comment:
You will find the diff file here now: http://mitglied.lycos.de/oblock/php/easter.c.diff.gz Previous Comments: ------------------------------------------------------------------------ [2007-01-25 20:20:22] [EMAIL PROTECTED] 404 not found.. ------------------------------------------------------------------------ [2007-01-25 20:16:28] oliver dot block at lycos dot de Let's start with the first function.:) You will find a diff file here: http://mitglied.lycos.de/oblock/easter.c.diff I also created more test files http://mitglied.lycos.de/oblock/easter_date_test.tar.gz Please check everthing and decide if you want to include it. ------------------------------------------------------------------------ [2007-01-24 13:54:13] [EMAIL PROTECTED] Basically we need to rewrite ext/calendar from scratch (to use ext/date types and utilities) and probably merge it into ext/date. Volunteers are welcome. ------------------------------------------------------------------------ [2007-01-23 19:29:22] oliver dot block at lycos dot de Description: ------------ If the timezone is set to another value than the system timezone, easter_date() will return a timestamp with respect to the systems local time, not with respect to the set timezone. That leads to wrong results of date/time function, e.g. date() which handle the (default) timestamp that is set my php (ini_set('date.timezone', 'UTC') or date_default_timezone_set() ). The problem occurs, if the timezone set by php is "east" of the system's timezone, if e.g. php timezone is 'UTC' and systems timezone is 'Europe/Berlin' Reproduce code: --------------- /ext/calendar/tests/easter_date.phpt Expected result: ---------------- the test /ext/calendar/tests/easter_date.phpt should pass. Actual result: -------------- the test /ext/calendar/tests/easter_date.phpt will fail. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40213&edit=1