ID:               36748
 Updated by:       [EMAIL PROTECTED]
 Reported By:      admin at yawnster dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Date/time related
 Operating System: WinXP
 PHP Version:      5.1.2
 New Comment:

Works fine, which timezone does the following print:

<?php
echo date("e"), "\n";
?>



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

[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

Reply via email to