Bug #28650 [Com]: Returning 31st December 1969

From: Date: Sat, 17 Apr 2021 08:15:27 +0000
Subject: Bug #28650 [Com]: Returning 31st December 1969
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233472@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=28650&edit=1 ID: 28650 Comment by: dayanahane008 at outlook dot com Reported by: chris at incot dot com Summary: Returning 31st December 1969 Status: Not a bug Type: Bug Package: Date/time related Operating System: FreeBSD PHP Version: 4.3.4 Block user comment: N Private report: N New Comment: I am looking into your matter to solve this https://www.mylonestar.online/ Previous Comments: ------------------------------------------------------------------------ [2004-06-08 09:58:52] derick@php.net Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Please upgrade to 4.3.7 first. ------------------------------------------------------------------------ [2004-06-06 20:02:58] helly@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Reread the docs. ------------------------------------------------------------------------ [2004-06-06 17:09:19] chris at incot dot com Description: ------------ This should return 28th March 2004, instead it is returning 31st December 1969. <?php echo date("Y-n-d",mktime(0, 0, 0, 3 , 28, 2004)); ?> Reproduce code: --------------- <?php echo date("Y-n-d",mktime(0, 0, 0, 3 , 28, 2004)); ?> Expected result: ---------------- 2004-03-28 Actual result: -------------- 1969-12-31 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=28650&edit=1

« previous php.bugs (#233472) next »