Bug #1069: using leading zeros in mkdate gives incorrect timestamp
| From: | tjones at northstar dot k12 dot ak dot us | Date: | Thu, 14 Jan 1999 06:27:51 +0000 |
| Subject: | Bug #1069: using leading zeros in mkdate gives incorrect timestamp | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3528@lists.php.net to get a copy of this message | ||
From: tjones@northstar.k12.ak.us
Operating system: Linux 2.0.36
PHP version: 3.0.6
PHP Bug Type: Misbehaving function
Bug description: using leading zeros in mkdate gives incorrect timestamp
./configure --with-apache=../apache_1.3.3 --with-mysql --with-ldap --with-imap -
-with-zlib --enable-sysvshm=yes --enable-sysvsem=yes --with-config-file-path
default php.ini file
<?
$futureDay = mktime(0,0,0,4,8,1999);
$futureDay1 = mktime(0,0,0,4,08,1999);
<LI>(<? echo date("l F dt\h Y", $futureDay); ?>,<? echo $futureDay ?>)
<LI>(<? echo date("l F dt\h Y", $futureDay1); ?> <? echo $futureDay1;
?>)
?>
result is
(Thursday April 08th 1999,923558400)
(Wednesday March 31th 1999 922870800)
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net