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

Posted by Marcus on 07/29/06 16:19

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.

 

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

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