#23467 [NEW]: Showing incorrect Time Zone
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)
- John at JGSystems dot net
- John at JGSystems dot net#23467 [Opn]: Showing incorrect Time Zone
- derick@php.net#23467 [Opn->Ver]: Showing incorrect Time Zone
- John at JGSystems dot net#23467 [Ver]: Showing incorrect Time Zone
- mgf@php.net#23467 [Ver]: Showing incorrect Time Zone
- michael dot mauch at gmx dot de#23467 [Com]: Showing incorrect Time Zone
- John at JGSystems dot net#23467 [Ver]: Showing incorrect Time Zone
- sniper@php.net#23467 [Ver->Fbk]: Showing incorrect Time Zone
- John at JGSystems dot net#23467 [Fbk->Opn]: Showing incorrect Time Zone
- sniper@php.net#23467 [Opn->Fbk]: Showing incorrect Time Zone
- John at JGSystems dot net#23467 [Fbk->Opn]: Showing incorrect Time Zone
- sniper@php.net#23467 [Opn->Fbk]: Showing incorrect Time Zone
- John at JGSystems dot net#23467 [Fbk->Opn]: Showing incorrect Time Zone
- John at JGSystems dot net#23467 [Opn]: Showing incorrect Time Zone
- radio_jed at hotmail dot com#23467 [Com]: Showing incorrect Time Zone
- radio_jed at hotmail dot com#23467 [Com]: Showing incorrect Time Zone
- John at JGSystems dot net#23467 [Opn]: Showing incorrect Time Zone
- sniper@php.net#23467 [Opn->Ver]: Showing incorrect Time Zone
- danielc at analysisandsolutions dot com#23467 [Com]: Showing incorrect Time Zone
- scottmacvicar at ntlworld dot com#23467 [Com]: Showing incorrect Time Zone
- sniper@php.net#23467 [Ver->Csd]: Showing incorrect Time Zone