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

From: Date: Sun, 11 Jan 2004 01:17:19 +0000
Subject: #26857 [Opn->Bgs]: date("H:i:s") or date("G:i:s") doesn't return correct time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53085@lists.php.net to get a copy of this message
ID: 26857 Updated by: sniper@php.net Reported By: ignatius at act28 dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: win XP PHP Version: 4.3.4 New Comment: Must be your machine that is very wrong. (possibly timezone is totally wrong one). Can not reproduce with working setup. Previous Comments: ------------------------------------------------------------------------ [2004-01-10 06:09:33] ignatius at act28 dot com 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 this bug report at http://bugs.php.net/?id=26857&edit=1

« previous php.bugs (#53085) next »