|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28650 Returning 31st December 1969
Submitted: 2004-06-06 17:09 UTC Modified: 2004-06-08 09:58 UTC
From: chris at incot dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.3.4 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chris at incot dot com
New email:
PHP Version: OS:


 [2004-06-06 17:09 UTC] chris at incot dot com
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:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-06 20:02 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

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-08 09:58 UTC]
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

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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 20:01:29 2024 UTC