diff --git a/debug.log b/debug.log
index abe5875..720b457 100644
--- a/debug.log
+++ b/debug.log
@@ -54,3 +54,4 @@
2026-03-18 02:26:44 - Items case hit
2026-03-18 02:28:48 - Items case hit
2026-03-18 02:28:58 - Items case hit
+2026-03-18 06:00:05 - Items case hit
diff --git a/index.php b/index.php
index 9d5c683..a7b32d2 100644
--- a/index.php
+++ b/index.php
@@ -49,6 +49,19 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
file_put_contents('post_debug.log', date('Y-m-d H:i:s') . " - POST: " . json_encode($_POST) . "\n", FILE_APPEND);
}
require_once 'db/config.php';
+
+// Timezone Setup
+try {
+ $tz_stmt = db()->prepare("SELECT value FROM settings WHERE `key` = 'timezone'");
+ $tz_stmt->execute();
+ $app_tz = $tz_stmt->fetchColumn();
+ if ($app_tz && in_array($app_tz, DateTimeZone::listIdentifiers())) {
+ date_default_timezone_set($app_tz);
+ }
+} catch (Exception $e) {
+ // Ignore if DB not ready
+}
+
require_once 'includes/DatabaseInstaller.php';
// Auto-install database if not installed
@@ -8511,6 +8524,19 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System';
+
+
+
+