#20048 [Opn]: mktime() returns -1 for dates < 1970

From: Date: Wed, 23 Oct 2002 19:26:42 +0000
Subject: #20048 [Opn]: mktime() returns -1 for dates < 1970
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23128@lists.php.net to get a copy of this message
ID: 20048 User updated by: jamie@hometownsports.ca Reported By: jamie@hometownsports.ca Status: Open Bug Type: Unknown/Other Function Operating System: RedHat Linux 7.3 PHP Version: 4.2.2 New Comment: glibc-2.2.5-34 and greater has been changed to return -1 for dates < 1970. This used to work. The problem exists with RedHat 7.3 and 8.0 echo (mktime(0, 0, 0, 1, 1, 1960)); // prints -1 Previous Comments: ------------------------------------------------------------------------ [2002-10-23 14:23:48] jamie@hometownsports.ca glibc-2.2.5-34 and greater has been changed to return -1 for dates < 1970. This used to work. The problem exists with RedHat 7.3 and 8.0 echo (mktime(0, 0, 0, 1, 1, 1960)); // prints -1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20048&edit=1

« previous php.bugs (#23128) next »