Make timezone config in version.conf

This commit is contained in:
Joshua
2022-07-21 21:12:40 +10:00
parent fea3d575b7
commit 93a1cc671f
3 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ if ($ENABLED_DARKMODE === True) {
<!-- Servertime to the right of the hostname -->
<script>
<?php
$conf_file = '../config/pialert.conf';
$conf_file = '../config/version.conf';
$conf_data = parse_ini_file($conf_file);
# set timezone for server time in header
date_default_timezone_set($conf_data['TZ']);