ID:               40116
 Updated by:       [EMAIL PROTECTED]
 Reported By:      marsh dot wayne at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Calendar related
 Operating System: Windows 2000 SP4
 PHP Version:      5.2.0
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You need to add date_default_timezone_set('UTC'); to your 
code. Otherwise the timezone changes jan 1 to Dec 31.


Previous Comments:
------------------------------------------------------------------------

[2007-01-13 16:45:45] marsh dot wayne at gmail dot com

Seems to be an issue on how the functions return the timestamp.  I
don't think this is the issue as it takes up to 15 days, and not the
difference of GMT vs local time, to make the proper month output.

------------------------------------------------------------------------

[2007-01-13 03:59:41] marsh dot wayne at gmail dot com

Description:
------------
I do believe this issue is with date.  None of the bugs that appeared
seemed to say the issue was resolved.  I will install latest cvs and
see if that resolves the issue and then update the bug issue.

Reproduce code:
---------------
<?php
error_reporting(E_ALL);
for($x = 1; $x < 13; $x++ ){
echo date("F", jdtounix(GregorianToJD( $x, 1 ,2008 )))." - ".$x."<br
/>";
}
?>

Expected result:
----------------
January - 1
February - 2
March - 3
April - 4
May - 5
June - 6
July - 7
August - 8
September - 9
October - 10
November - 11
December - 12

Actual result:
--------------
December - 1
January - 2
February - 3
March - 4
April - 5
May - 6
June - 7
July - 8
August - 9
September - 10
October - 11
November - 12


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40116&edit=1

Reply via email to