Reply to Re: set timezone with php4

Your name:

Reply:


Posted by Satya on 03/26/07 06:09

On Mar 21, 5:52 am, "mun" <vong...@gmail.com> wrote:
> My server is in the US and I want to set a different timezone (GMT
> +7), so that I can have an appropriate time for my country. How to do
> this in php4?

Use gmdate() at time of storing date in DB. and add your required
time(+7 hr) at the time of using that or

putenv("TZ=Asia/Calcutta");
echo "New Time: ". date("h:i:s")."\n";

Complete time zone listing is here:
http://www.theprojects.org/dev/zone.txt

Happy Programming.

[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

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