Bug #17190 Updated: Date() gives error for date prior to 1-1-1970

From: Date: Tue, 14 May 2002 06:19:10 +0000
Subject: Bug #17190 Updated: Date() gives error for date prior to 1-1-1970
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7602@lists.php.net to get a copy of this message
ID: 17190 Updated by: derick@php.net Reported By: mfconstable@pacbell.net -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Windows NT 4.0 PHP Version: 4.2.0 New Comment: Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. This is a problem in Windows, not in PHP. Derick Previous Comments: ------------------------------------------------------------------------ [2002-05-13 17:31:08] mfconstable@pacbell.net When using date() to format date prior to Jan 1, 1970 or after Jan 19, 2038 PHP gives Warning: unexpected error in date() script \\variable's byear,bmonth,bday come from user form \\script works fine for dates between 1-1-1970 - 1-19-2038 $bdate = $byear . "-" . $bmonth . "-" . $bday ; $dob = strtotime($bdate); $_SESSION['view_dob'] = date("d-m-Y",$dob); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17190&edit=1

« previous php.bugs (#7602) next »