ID:               46995
 Updated by:       scott...@php.net
 Reported By:      DePhille at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Linux CentOS
 PHP Version:      5.2.8
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

>From the manual page:

Numeric representation of the day of the week
0 (for Sunday) through 6 (for Saturday)


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

[2009-01-03 01:08:24] DePhille at gmail dot com

Description:
------------
The gmdate("w") function returns a wrong value.

Reproduce code:
---------------
<?php
$mytime=1230944636;       // Sat, 03 Jan 2009 01:03:56 GMT
echo gmdate("l");         // This returns "Saturday" (correct)
echo gmdate("w");         // This returns 6 (incorrect, 6 would mean
Sunday!
?>

Expected result:
----------------
the gmdate("w") function returns an incorrect value.



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


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

Reply via email to