#23467 [NEW]: Showing incorrect Time Zone

From: Date: Sat, 03 May 2003 17:14:00 +0000
Subject: #23467 [NEW]: Showing incorrect Time Zone
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38990@lists.php.net to get a copy of this message
From:             John at JGSystems dot net
Operating system: Windows 2000 & XP
PHP version:      4.3.1
PHP Bug Type:     Date/time related
Bug description:  Showing incorrect Time Zone

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 bug report at http://bugs.php.net/?id=23467&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23467&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23467&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23467&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23467&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23467&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23467&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23467&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23467&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23467&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23467&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23467&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23467&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23467&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23467&r=gnused



Thread (21 messages)

« previous php.bugs (#38990) next »