From: sean at shrum dot net
Operating system: Linux
PHP version: 4.3.2
PHP Bug Type: Date/time related
Bug description: date("G") returns nothing
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
--
Edit bug report at http://bugs.php.net/?id=24929&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24929&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24929&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24929&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24929&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24929&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24929&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24929&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24929&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24929&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24929&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24929&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24929&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24929&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24929&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24929&r=gnused