get server timezone

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

As far as I can tell from the documentation and other  
documentation I've seen, date("T") should return the server timezone in  
3-character format, i.e. EST, MST, etc...

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.

Re: get server timezone

Marcus wrote:
Quoted text here. Click to load it
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

Site Timeline