Reply to Re: date_default_timezone_set() returns a 4-hour late time

Your name:

Reply:


Posted by Gordon Burditt on 05/30/07 00:26

>I live in Brazil so I used the following script to return time:
>
><?
>date_default_timezone_set('America/Sao_Paulo');
>echo date('h:i:s');
>?>
>
>But it returns 7:30 while it's actually 11:30 here. I checked the
>server time, and it is correct on the server. How could I return the
>time of S�o Paulo? Thanks.

Is the TIME ZONE set correctly on the server?

[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

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