|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-04 01:56 UTC] sean at shrum dot net
Description:
------------
I get nothing back from the date("G") function call. Granted, I am using a offset value with it but the offset works with every other date call so I know the offset value is not the cause
Reproduce code:
---------------
$offset = strtotime("+3 hours");
$time_vars["hour_24"] = date("G", $offset);
Expected result:
----------------
$time_vars["hour_24"] should have the current hour in 24-hour format without leading zeros. If it is 1 am, the result should be "4" (due to the offset). If it is 5 pm, the result should be "22" (due to the offset).
Actual result:
--------------
nothing; blank value
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 23:00:01 2025 UTC |
Using latest CVS: [jani@rh62 jani]$ date Mon Aug 4 18:54:40 EEST 2003 [jani@rh62 jani]$ php -r '$offset = strtotime("+3 hours"); echo $offset,"\n",date("G", $offset);' 1060023283 21 No bug here.