I live in Brazil so I used the following script to return time:
<?
date_default_ti mezone_set('Ame rica/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.
<?
date_default_ti mezone_set('Ame rica/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.
Comment