#35632 [Opn->Bgs]: mktime() + gmmktime() - give incorrect year if...
| From: | sniper@php.net | Date: | Sun, 11 Dec 2005 17:45:36 +0000 |
| Subject: | #35632 [Opn->Bgs]: mktime() + gmmktime() - give incorrect year if... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-90232@lists.php.net to get a copy of this message | ||
ID: 35632
Updated by: sniper@php.net
Reported By: vbassasssin at coderheaven dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows XP
PHP Version: 4.4.1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
RTFM
Previous Comments:
------------------------------------------------------------------------
[2005-12-11 16:43:17] vbassasssin at coderheaven dot com
Description:
------------
Hi ya,
Why does (code below in "reproduce code") give the year of 2004 instead
of 2005 when i enter date("Y", time()) which gives the date 2005.
The timestamp generated is for 2004!
I have checked my server time and that is correct and 2005.
Best regards,
scott
Reproduce code:
---------------
$timestamp = mktime( 0, 0, 0, date("F", time()), date("j", time()),
date("Y", time()));
print "Query Timestamp: $timestamp --- " . date("jS F Y", $timestamp) .
"<br />";
Expected result:
----------------
Todays date! With this years year of 2005 and not 2004!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35632&edit=1