|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-03 01:50 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 00:00:01 2025 UTC |
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.