#26857 [NEW]: date("H:i:s") or date("G:i:s") doesn't return correct time

From: Date: Sat, 10 Jan 2004 11:09:33 +0000
Subject: #26857 [NEW]: date("H:i:s") or date("G:i:s") doesn't return correct time
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53050@lists.php.net to get a copy of this message
From: ignatius at act28 dot com Operating system: win XP PHP version: 4.3.4 PHP Bug Type: Date/time related Bug description: date("H:i:s") or date("G:i:s") doesn't return correct time Description: ------------ Not sure if it's my setup or what, but php4.3.4 on Windows XP, Apache 2.0.48 - date("H:i:s") or date("G:i:s") doesn't return the correct hour in 24 hour format. For some reason, 17:15:00 becomes 07:15:00 and so on.... Reproduce code: --------------- print date('H:i:s'); print date('G:i:s'); Expected result: ---------------- Well, it depends on what time it is doesn't it? :-) Er.. it is now 17:21:34 according to my system clock Actual result: -------------- 07:21:34 -- Edit bug report at http://bugs.php.net/?id=26857&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26857&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26857&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26857&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26857&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26857&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26857&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26857&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26857&r=support Expected behavior: http://bugs.php.net/fix.php?id=26857&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26857&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26857&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26857&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26857&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26857&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26857&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26857&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26857&r=float

« previous php.bugs (#53050) next »