<?php
// Use your local time zone (Sri Lanka)
date_default_timezone_set('Asia/Colombo');

// If we have a mysqli connection, align the MySQL session time zone too
if (isset($mysqli) && $mysqli instanceof mysqli) {
    // "+05:30" for Asia/Colombo
    @ $mysqli->query("SET time_zone = '+05:30'");
}
