From: bochard Date: Mon, 22 Dec 2025 10:51:05 +0000 (+0800) Subject: force timezone to PH X-Git-Url: https://git.bochard.net/?a=commitdiff_plain;h=9aa727869860a2feb8a6d6c5ca3495cb38b0793c;p=mysite.git force timezone to PH --- diff --git a/guestbook.php b/guestbook.php index a5dfcb6..69d1e9f 100644 --- a/guestbook.php +++ b/guestbook.php @@ -28,6 +28,9 @@ // connect to database $conn = new mysqli($host, $username, $password, $dbname); + // force to use PH timezone + $conn->query("SET time_zone='+08:00';"); + // check connection if($conn->connect_error){ die("Connection failed: {$conn->connect_error}"); @@ -89,7 +92,6 @@

-

Entries

num_rows > 0){