#20191 [Opn->Fbk]: Problems with mktime returns -1 value on some specific dates
| From: | iliaa@php.net | Date: | Thu, 31 Oct 2002 15:25:41 +0000 |
| Subject: | #20191 [Opn->Fbk]: Problems with mktime returns -1 value on some specific dates | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23797@lists.php.net to get a copy of this message | ||
ID: 20191
Updated by: iliaa@php.net
Reported By: lobao@varginha.com.br
-Status: Open
+Status: Feedback
Bug Type: Date/time related
Operating System: FreeBSD 4.5-RELEASE #3
PHP Version: 4.2.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-10-31 08:55:54] lobao@varginha.com.br
echo mktime(0,0,0,10,33,2002); // returns 1036206000
echo mktime(0,0,0,10,34,2002); // returns -1
echo mktime(0,0,0,10,35,2002); // returns 1036375200
bug or what?????
the correct return for
echo mktime(0,0,0,10,34,2002);
is
1036290600
and not -1 !
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20191&edit=1