Reply to Setting the environment variable for timezones ...

Your name:

Reply:


Posted by dbee on 04/03/06 07:42

So I can't figure out what exactly is going wrong here ... I'm using
php4.3
I'm accessing a server in Dublin from Seoul. I need to be able to
translate times into various timezones across the world. Simple
addition isn't the best because it doesn't take into account Daylight
Saving Times etc ....

What I'm doing is setting the TZ environment variable to my preferred
timezone and then calling a date function to get the hour ...

putenv("TZ=EST");
echo date('G');

.... unfortunately it doesn't work and I don't know why.
TZ is definitely set when I call my date function ... but it always
returns dublin time regardless of the TZ environment variable .... ?

Help ...

[Back to original 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

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