From:             chris at incot dot com
Operating system: FreeBSD
PHP version:      4.3.4
PHP Bug Type:     Date/time related
Bug description:  Returning 31st December 1969

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 bug report at http://bugs.php.net/?id=28650&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28650&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28650&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28650&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28650&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28650&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28650&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28650&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28650&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28650&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28650&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28650&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28650&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28650&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28650&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28650&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28650&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28650&r=float

Reply via email to