beautify, gestion charset mysql

This commit is contained in:
Gregory Letellier
2023-11-14 16:49:10 +01:00
parent 2ae0f14b99
commit ae19bba912
4 changed files with 24 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ use DateTimeZone;
class Home extends Controller
{
public function index()
{
{
$date = new \DateTime('now', new DateTimeZone("Europe/Paris"));
$html = $this->renderView("index", ["date" => $date->format("d/m/Y H:i:s")]);
$this->render($html);