#23467 [Opn]: Showing incorrect Time Zone

From: Date: Tue, 26 Aug 2003 21:42:53 +0000
Subject: #23467 [Opn]: Showing incorrect Time Zone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46717@lists.php.net to get a copy of this message
ID: 23467 User updated by: John at JGSystems dot net Reported By: John at JGSystems dot net Status: Open Bug Type: Date/time related -Operating System: win32 only +Operating System: Windows 2000 & XP -PHP Version: 4.3.3RC5-dev, 5.0.0b2-dev +PHP Version: 4.3.2-RC1 New Comment: Yuppers! I actually first noticed it using the page last mod date testing BadBlue :-) But yes, date shows incorrect also. This has been around a LONG time through several versions. I am not a C coder, but with the 100% reproduceable results, you'd think it'd be an easy fix. Shows you what I know... =|;-) Previous Comments: ------------------------------------------------------------------------ [2003-08-26 16:16:12] radio_jed at hotmail dot com Results of "r", "I", "T": Tue, 26 Aug 2003 14:15:16 -0700 1 BST (This is on Apache 2.0.43, Win XP, PHP 4.3.2) ------------------------------------------------------------------------ [2003-08-26 16:13:27] radio_jed at hotmail dot com I just submitted a bug with the exact same thing, but this is reproducible on my XP machine. I get "BST" as well, and I'm in America/Los_Angeles (should be "PST" or "PDT"). Coincidentally, my problem was while using filemtime() (I note that you used getlastmod()), but it also works when using date() naked. ------------------------------------------------------------------------ [2003-08-20 20:35:39] John at JGSystems dot net Here ya go: Commands: echo date("r"),"<br>\n"; echo date("I"),"<br>\n"; // uppercase "i" echo date("T"),"<br>\n"; Result: Wed, 20 Aug 2003 19:33:34 -0600 1 BST This what you wanted? (I hope) ------------------------------------------------------------------------ [2003-08-19 23:12:26] John at JGSystems dot net The time last modified was pasted in the reply. This page was last modified: Monday - May 19, 2003 at 4:22 PM BST. I'll get the current time pasted in tomorrow... The results of: echo date("r"),"\n"; echo date("I"),"\n"; // uppercase "i" Too late tonight... ------------------------------------------------------------------------ [2003-08-19 22:48:30] sniper@php.net I wanted to know the TIME...not the time zone.. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/23467 -- Edit this bug report at http://bugs.php.net/?id=23467&edit=1

« previous php.bugs (#46717) next »