#28650 [Opn->Fbk]: Returning 31st December 1969
| From: | helly@php.net | Date: | Sun, 06 Jun 2004 18:02:59 +0000 |
| Subject: | #28650 [Opn->Fbk]: Returning 31st December 1969 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60436@lists.php.net to get a copy of this message | ||
ID: 28650
Updated by: helly@php.net
Reported By: chris at incot dot com
-Status: Open
+Status: Feedback
Bug Type: Date/time related
Operating System: FreeBSD
PHP Version: 4.3.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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 http://bugs.php.net/?id=28650&edit=1