From: oliver dot block at lycos dot de Operating system: Linux PHP version: 5.2.1RC3 PHP Bug Type: Calendar related Bug description: easter_date() returns wrong timestamp if ...
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 bug report at http://bugs.php.net/?id=40213&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40213&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40213&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40213&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40213&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40213&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40213&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40213&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40213&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40213&r=support Expected behavior: http://bugs.php.net/fix.php?id=40213&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40213&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40213&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40213&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40213&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40213&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40213&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40213&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40213&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40213&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40213&r=mysqlcfg