|
Posted by Chuck Anderson on 07/29/06 18:32
Marcus wrote:
> Hello,
>
> As far as I can tell from the php.net documentation and other
> documentation I've seen, date("T") should return the server timezone in
> 3-character format, i.e. EST, MST, etc...
>
> http://www.php.net/manual/en/function.date.php
>
> However, when I run date("T") on my machine with php 4.3.10, I get:
>
> Pacific Daylight Time
>
> Does anyone know why this is? The above documentation can't be version
> specific to version 5 because I have also seen documentation written a
> few years ago that says:
>
> Timezone setting of the server in 3-character format, for example, "EST".
>
> Thanks for all your help.
>
It's taken from the OS, and that long format is a Windows thing.
The manual says:
T Timezone setting of this machine Examples: EST, MDT ...
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*****************************
Navigation:
[Reply to this message]
|