#28249 [Opn]: jdtounix and unixtojd conversions 1 day out
| From: | ignatius at act28 dot com | Date: | Sun, 02 May 2004 03:20:00 +0000 |
| Subject: | #28249 [Opn]: jdtounix and unixtojd conversions 1 day out | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59115@lists.php.net to get a copy of this message | ||
ID: 28249
User updated by: ignatius at act28 dot com
Reported By: ignatius at act28 dot com
Status: Open
Bug Type: Calendar related
Operating System: WinXP/Linux
PHP Version: 4.3.6
New Comment:
On the dev.worlddo.com script, try anything -GMT, e.g. America/Denver
or even Atlantic/Cape Verde. You'll see that the strftime() returns
04/30/2004 NOT 05/01/2004.
On Windows, try Australia/Brisbane. The time is out by 2 hours -
5/2/2004 12:27:59 AM instead of 5/2/2004 10:27.59 AM.
Previous Comments:
------------------------------------------------------------------------
[2004-05-02 02:07:06] ignatius at act28 dot com
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 this bug report at http://bugs.php.net/?id=28249&edit=1