I'm having trouble with date
, it takes my computer clock time and I wanted it to really get the right time.
The result of the following code is that date
will fetch from your host server.
date_default_timezone_set('America/Sao_Paulo');
$date = date('Y-m-d H:i');
echo $date;