You are here: date_default_timezone_set() returns a 4-hour late time « PHP Programming Language « IT news, forums, messages
date_default_timezone_set() returns a 4-hour late time

Posted by Charles on 05/29/07 14:24

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.

 

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

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