ID:               23467
 Comment by:       danielc at analysisandsolutions dot com
 Reported By:      John at JGSystems dot net
 Status:           Verified
 Bug Type:         Date/time related
 Operating System: win32
 PHP Version:      4.3.4-dev, 5.0.0b2-dev
 New Comment:

Um, sorry if I'm cluttering the list...  This bug is half a year old so
I'm wondering if/when it's going to get fixed.

Y'all probably know what's going on, but allow me to clarify what I've
learned about this bug, perhaps it will help someone.

date('T') doesn't work under Windows during Daylight times and there's
no notation of this in the manual.  I'll put a user comment in there.

Here's a test script:

<?php
echo 'Local:     dT='.date('T') . ' dO='.date('O') . '
sZ='.strftime('%Z');

echo "\n<br />";
putenv('TZ=EST5EDT');
echo 'EST5EDT:   dT='.date('T') . ' dO='.date('O') . '
sZ='.strftime('%Z');

echo "\n<br />";
putenv('TZ=PST8PDT');
echo 'PST8PDT:   dT='.date('T') . ' dO='.date('O') . '
sZ='.strftime('%Z');

echo "\n<br />";
putenv('TZ=GMT0BST');
echo 'GMT0BST:   dT='.date('T') . ' dO='.date('O') . '
sZ='.strftime('%Z');

echo "\n<br />";
putenv('TZ=MST-3MDT');
echo 'MST-3MDT:  dT='.date('T') . ' dO='.date('O') . '
sZ='.strftime('%Z');

echo "\n<br />";
putenv('TZ=GMT');
echo 'GMT:       dT='.date('T') . ' dO='.date('O') . '
sZ='.strftime('%Z');
?>


OUTPUT DURING EASTERN DAYLIGHT TIME
-----------------------------------
Local:     dT=BST dO=-0400 sZ=Eastern Daylight Time
EST5EDT:   dT=BST dO=-0400 sZ=EDT
PST8PDT:   dT=BST dO=-0700 sZ=PDT
GMT0BST:   dT=BST dO=+0100 sZ=BST
MST-3MDT:  dT=BST dO=+0400 sZ=MDT
GMT:       dT=GMT dO=+0000 sZ=GMT

OUTPUT DURING EASTERN STANDARD TIME
-----------------------------------
Local:     dT=Eastern Standard Time dO=-0500 sZ=Eastern Standard Time
EST5EDT:   dT=EST dO=-0500 sZ=EST
PST8PDT:   dT=PST dO=-0800 sZ=PST
GMT0BST:   dT=GMT dO=+0000 sZ=GMT
MST-3MDT:  dT=MST dO=+0300 sZ=MST
GMT:       dT=GMT dO=+0000 sZ=GMT


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

[2003-08-26 22:59:32] [EMAIL PROTECTED]

This is general win32 problem. No need to post anymore comments here,
we know about it.


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

[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] [EMAIL PROTECTED]

I wanted to know the TIME...not the time zone..



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

[2003-08-19 21:12:06] John at JGSystems dot net

It's a local machine.  Win XP.  Nothings changed from the items listed
below in this thread or I would have mentioned it.

I downloaded the link, installed it after erasing the last version you
all had me try and the same result.  I did tell you that it was
supposed to be --> MDT <-- not --> BST <--

Thanks...

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

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

Reply via email to