ID:               25825
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pennington at rhodes dot edu
-Status:           Open
+Status:           Feedback
 Bug Type:         Date/time related
 Operating System: Windows 2000
 PHP Version:      4.3.3
 New Comment:

Which SAPI are you running?
CGI? ISAPI? Apache? Something else?


Previous Comments:
------------------------------------------------------------------------

[2003-10-10 20:01:43] hjanfield at parag0n dot net

I have this problem as well, with Windows XP SP1.
However, my timezone offset is also buggered - I get "BST" instead of
the expected "MST", but rather than the +0000 offset that pennington
seems to be getting, I get -0600 (one hour off the expected result of
-0700).

I tried setting env variables - putenv("TZ=MST") (TZ was empty
beforehand), which displayed TZ=MST, but then set my offset to +0000
(thus, dates were still messed up). Attempting other values in TZ (i.e.
US/Pacific, or various other timezone names valid on Linux) simply
resulted in BST, +0100.

------------------------------------------------------------------------

[2003-10-10 14:30:11] pennington at rhodes dot edu

Description:
------------
The Windows version of PHP 4.3.3 does not return the system's time when
the date() command is used. It only returns UTC time and "BST" as the
timezone, even when the Windows server is set to use local time and
reports as such in the Date/Time control panel.

Please note that this is different than bug #23467 because the time
being reported is wrong (UTC rather than the local CST), in addition to
the wrong "BST" timezone.

Reproduce code:
---------------
echo date("D M j G:i:s T Y");

Expected result:
----------------
Fri Oct 10 13:28:58 CST 2003

Actual result:
--------------
Fri Oct 10 18:28:58 BST 2003


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25825&edit=1

Reply via email to