Re: date_default_timezone_set() returns a 4-hour late time
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.