diff --git a/inc/db.php b/inc/db.php index bc1f0c4..600ee1a 100755 --- a/inc/db.php +++ b/inc/db.php @@ -4,6 +4,9 @@ include('secure.php'); // Verbindung herstellen $conn = mysqli_connect($host, $user, $password, $dbname); +// Zeitzone der MySQL-Sitzung auf UTC setzen +$conn->query("SET time_zone = '+00:00';"); + // Verbindung prüfen if (!$conn) { die("Verbindung zur Datenbank fehlgeschlagen: " . mysqli_connect_error());