diff --git a/settings.php b/settings.php
index 8be2caa4a..e59b13523 100644
--- a/settings.php
+++ b/settings.php
@@ -19,6 +19,12 @@
$error .= "There was a problem applying your settings.
Debugging information:
PHP error (".htmlspecialchars($last_error["type"])."): ".htmlspecialchars($last_error["message"])." in ".htmlspecialchars($last_error["file"]).":".htmlspecialchars($last_error["line"]);
}
+# Timezone is set in docker via ENV otherwise get it from commandline
+$timezone=htmlspecialchars(getenv("TZ"));
+if (empty($timezone)) {
+ $timezone=shell_exec("date +'%Z'");
+}
+
?>