From: ignatius at act28 dot com Operating system: WinXP/Linux PHP version: 4.3.6 PHP Bug Type: Calendar related Bug description: jdtounix and unixtojd conversions 1 day out
Description: ------------ jdtounix and unixtojd conversions are 1 day out when timezones are in effect. Specifically, when timezone is negative GMT. This is happening on both WinXP and Linux for PHP4.3.4 and 4.3.6. On Windows, it's even more weird. time() returns the 1 May 2004 not 2 May 2004. Reproduce code: --------------- See test script at http://dev.worlddo.com/jdtime.php Expected result: ---------------- Test script produces both expected and actual results for comparison -- Edit bug report at http://bugs.php.net/?id=28249&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28249&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28249&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28249&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28249&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28249&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28249&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28249&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28249&r=support Expected behavior: http://bugs.php.net/fix.php?id=28249&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28249&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28249&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28249&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28249&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28249&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28249&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28249&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28249&r=float
