#28416 [Opn->Asn]: mktime doesn't handle three digit years correct

From: Date: Mon, 05 Jul 2004 23:45:17 +0000
Subject: #28416 [Opn->Asn]: mktime doesn't handle three digit years correct
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61734@lists.php.net to get a copy of this message
ID: 28416 Updated by: sniper@php.net Reported By: helly@php.net -Status: Open +Status: Assigned Bug Type: Date/time related Operating System: * PHP Version: 4.3.6 Assigned To: derick Previous Comments: ------------------------------------------------------------------------ [2004-05-16 20:23:07] helly@php.net Description: ------------ mktime() doesn't handle three digit year values correct. Reproduce code: --------------- <?php var_dump(date("Y", mktime(1, 2, 3, 4, 5, 123)));' ?> Expected result: ---------------- string(4) "2123" Actual result: -------------- string(4) "2023" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28416&edit=1

« previous php.bugs (#61734) next »