|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-18 23:29 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 13:00:01 2025 UTC |
Description: ------------ Within Joomla, called from the "libraries/joomla/utilities/data.php" library, the function gmdate("Y") returns "0000", whereas gmdate("y") correctly returns "09". If functions correctly on the command line. Reproduce code: --------------- $date = strtotime(gmdate("M d Y H:i:s", time())); echo $date; // This returns "Jul 18 0000 23:05:58". Expected result: ---------------- It should return "Jul 18 2009 23:05:58".