You are here: Re: get server timezone « PHP Programming Language « IT news, forums, messages
Re: get server timezone

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация