#23467 [Com]: Showing incorrect Time Zone

From: Date: Tue, 06 May 2003 17:28:03 +0000
Subject: #23467 [Com]: Showing incorrect Time Zone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39164@lists.php.net to get a copy of this message
ID: 23467 Comment by: michael dot mauch at gmx dot de Reported By: John at JGSystems dot net Status: Verified Bug Type: Date/time related Operating System: Windows 2000 & XP PHP Version: 4.3.2-RC1 New Comment: This example shows exactly how braindead these abbreviations are: a) Nobody knows what they mean. b) According to <http://www.worldtimezone.com/wtz-names/wtz-bst.html>, "BST" means also "Brazil Standard Time" and "Bering Summer Time". c) Everybody invents their own zone names - e.g. <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_crt__tzset.asp> features a "GST" for "German standard time", which definitely doesn't exist here in Germany. John, can you please post the result of: echo date("r"),"\n"; echo date("I"),"\n"; // uppercase "i" And can you please make sure that your Windows machine knows in which timezone it is? Previous Comments: ------------------------------------------------------------------------ [2003-05-06 06:09:39] mgf@php.net Actually (just to be nit-pickily accurate), British *Summer* Time. ------------------------------------------------------------------------ [2003-05-03 15:38:50] derick@php.net BullShit Time :-) Nope, it's Brittish Standard Time... and the weird thing is that I encountered the same on my machine (with 4.3.2RC1). ------------------------------------------------------------------------ [2003-05-03 15:30:22] John at JGSystems dot net Downloaded your latest stable at: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Now shows T option different, but not correct yet. i.e. : This page was last modified: Friday - April 25, 2003 at 11:30 AM BST. <-- What is BST? ;-) ------------------------------------------------------------------------ [2003-05-03 12:14:00] John at JGSystems dot net Running PHP with BadBlue on Two machines. One Win2K Pro, the other XP SPK1. Also on a Linux Apache production machine. "T" Option to the date function appears to display incorrectly. Shows Mountain Standard Time all the time. It is now Daylight Savings Time here in Montana. Script: php print "This page was last modified:<br>".date("l - F d, Y \\a\\t g:i A T.", getlastmod()) Under my Apache servers PHP displays correctly. I use this for the getlastmod() document function. Here is a copy/paste from the same page on two different servers. Linux Apache (Production Machine): This page was last modified: Friday - April 25, 2003 at 11:30 AM MDT. Windows 2K/XP: This page was last modified: Friday - April 25, 2003 at 11:30 AM Mountain Standard Time. This also happens with a simple date printout: php print "This page was last modified:<br>".date("l - F d, Y \\a\\t g:i A T.") Saturday - May 03, 2003 at 11:09 AM Mountain Standard Time. Hope this helps. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23467&edit=1

« previous php.bugs (#39164) next »