<?php
// check_timezone.php

// Connect to MySQL
$con = mysqli_connect("localhost", "root", "", "WSAS");
if (!$con) {
    die("Connection failed: " . mysqli_connect_error());
}

// Query MySQL time zones
$result = mysqli_query($con, "SELECT @@global.time_zone AS global_tz, @@session.time_zone AS session_tz");
$row = mysqli_fetch_assoc($result);

echo "Global Timezone: " . $row['global_tz'] . "<br>";
echo "Session Timezone: " . $row['session_tz'] . "<br>";
?>