14
I’m having trouble in the date
, he takes my clock from my computer and I wanted him to actually pick the right time.
The result of the following code is that the date
will take from your host server.
<?php
date_default_timezone_set('America/Sao_Paulo');
$date = date('Y-m-d H:i');
echo $date;
?>
Right in what sense? how does php vc get the server date/time for example (GMT +07:00) with js the local computer (GMT -03:00).
– rray
AAAAA,the date picks up the right serving? ,then all right sorry that question
– Dieguinho Rodrigues
Maybe it’ll help: Get the current date and time by internet in desktop application
– Fernando Leal