ID: 36748 User updated by: admin at yawnster dot com Reported By: admin at yawnster dot com -Status: Feedback +Status: Open Bug Type: Date/time related Operating System: WinXP PHP Version: 5.1.2 New Comment:
http://82.44.194.226/test.php Its says im in Europe/London which is indeed correct.. I also included the file code within the test.php file so you can see the problem firsthand.. Alex Previous Comments: ------------------------------------------------------------------------ [2006-03-15 21:19:41] [EMAIL PROTECTED] Works fine, which timezone does the following print: <?php echo date("e"), "\n"; ?> ------------------------------------------------------------------------ [2006-03-15 18:24:27] admin at yawnster dot com Description: ------------ The gmdate() function produces March twice and misses out October under certain conditions. Reproduce code: --------------- <div id="month"> <select name="month"> <?php for($i = 1; $i <=12; $i++) { $date = gmdate('F', mktime(0, 0, 0, $i, 1, 2006)); echo("<option value='$i'>$date</option>"); } ?> </select> </div> Expected result: ---------------- Well it should produce a list of the Months in order into a drop-box. Actual result: -------------- Well it gives out the 12 months, but goes through March Twice, but misses out October.. This problem however doesnt occur within the date() function, so for the time being I'll use this.. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36748&edit=1