Bug #948: mktime returns incorrect datestamps when passed months like 09 instead of 9
| From: | cmlambertus at ucdavis dot edu | Date: | Tue, 24 Nov 1998 04:55:48 +0000 |
| Subject: | Bug #948: mktime returns incorrect datestamps when passed months like 09 instead of 9 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2570@lists.php.net to get a copy of this message | ||
From: cmlambertus@ucdavis.edu
Operating system: Solaris 2.6
PHP version: 3.0.5
PHP Bug Type: Misbehaving function
Bug description: mktime returns incorrect datestamps when passed months like 09 instead of 9
while writing a small mysql query module i discovered
that calling mktime(0,0,0,09,0,1998) instead of
mktime(0,0,0,9,0,1998) reported a very incorrect
timestamp of 880876800. calling it with 9 instead of
09 returned the correct timestamp as verified by
C ctime().
-chris
--
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