Bug #1069 Updated: using leading zeros in mkdate gives incorrect timestamp
| From: | Bug Database | Date: | Thu, 14 Jan 1999 06:29:59 +0000 |
| Subject: | Bug #1069 Updated: using leading zeros in mkdate gives incorrect timestamp | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3529@lists.php.net to get a copy of this message | ||
ID: 1069
User Update by: tjones@northstar.k12.ak.us
Status: Open
Bug Type: Misbehaving function
Description: using leading zeros in mkdate gives incorrect timestamp
Big OOPS, should be mktime not mkdate!
./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)
Full Bug description available at: http://ca.php.net/bugs.php3?id=1069
--
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