Hello everyone, today I had to make sure that both PHP and MySQL have the same time, here's what I did:
PHP:
```PHP
date_default_timezone_set("America/Santiago");
$zona_horaria = date("P"); // timezone in the format MySQL likes
$sql = "set time_zone = '$zona_horaria'";
$mysqli->query($sql);
```
It worked, open to better ideas.
PHP:
```PHP
date_default_timezone_set("America/Santiago");
$zona_horaria = date("P"); // timezone in the format MySQL likes
$sql = "set time_zone = '$zona_horaria'";
$mysqli->query($sql);
```
It worked, open to better ideas.