#34792 [Opn->Bgs]: Date() function bug
| From: | sniper@php.net | Date: | Sun, 09 Oct 2005 11:25:57 +0000 |
| Subject: | #34792 [Opn->Bgs]: Date() function bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86270@lists.php.net to get a copy of this message | ||
ID: 34792
Updated by: sniper@php.net
Reported By: kallesommer at ofir dot dk
-Status: Open
+Status: Bogus
-Bug Type: Unknown/Other Function
+Bug Type: Date/time related
Operating System: UNIX/Windows
PHP Version: 4.4.0
New Comment:
Please try understand the documentation first before claiming something
is a bug. And check your dictionary for "lowercase" :)
Previous Comments:
------------------------------------------------------------------------
[2005-10-09 12:44:05] kallesommer at ofir dot dk
Description:
------------
If you look up at the manual on date() it says that "l (lowercase 'L')
would give A full textual representation of the day of the week Sunday
through Saturday" but if you look lower it also says "Year: L Whether
it's a leap year 1 if it is a leap year, 0 otherwise."
So if you run your script you would get '1 or 0'...
Reproduce code:
---------------
<?= date('L'); ?>
Expected result:
----------------
I expect to see the name of the weekday..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34792&edit=1