Change new config references

This commit is contained in:
Joshua
2022-07-21 18:10:27 +10:00
parent b9b0698668
commit 3631c271a6
4 changed files with 4 additions and 5 deletions

View File

@@ -85,8 +85,9 @@ if ($ENABLED_DARKMODE === True) {
<!-- Servertime to the right of the hostname -->
<script>
<?php
$conf_file = '../config/version.conf';
$conf_file = '../config/pialert.conf';
$conf_data = parse_ini_file($conf_file);
# set timezone for server time in header
date_default_timezone_set($conf_data['TZ']);
?>
var pia_servertime = new Date(<?php echo date("Y, n, j, G, i, s") ?>);