PHP 4.0 Bug #5716: date("z")
| From: | eldorado at ticino dot com | Date: | Fri, 21 Jul 2000 00:03:55 +0000 |
| Subject: | PHP 4.0 Bug #5716: date("z") | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-25307@lists.php.net to get a copy of this message | ||
From: eldorado@ticino.com
Operating system: Linux
PHP version: 4.0.1pl2
PHP Bug Type: Scripting Engine problem
Bug description: date("z")
I've found an error when I ask the day of the year with
date("z") and gmdate("z")
The 1.Januar should be the number 1 but this function return number 0.
You can check it running this:
<?
for ($i=1; $i<=366; $i++){
echo date("d.m.Y z",mktime(0,0,0,1,$i,2000));
echo "<br>";
}
?>
Please inform me if is not an error.