|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-11 18:45 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 24 20:00:01 2025 UTC |
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!