Merge pull request #39 from Final-Hawk/patch-1

Update Header.php
This commit is contained in:
jokob-sk
2022-07-24 17:29:15 +10:00
committed by GitHub

View File

@@ -102,12 +102,7 @@ if ($ENABLED_DARKMODE === True) {
<!-- Servertime to the right of the hostname -->
<script>
<?php
$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']);
?>
var pia_servertime = new Date(<?php echo date("Y, n, j, G, i, s") ?>);
function show_pia_servertime() {