mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Make timezone config in version.conf
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3
|
||||
#-------------------------------------------------------------------------------
|
||||
TZ = 'Europe/London'
|
||||
|
||||
PIALERT_PATH = '/home/pi/pialert'
|
||||
DB_PATH = PIALERT_PATH + '/db/pialert.db'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
VERSION = '3.5_leiweibau'
|
||||
VERSION_YEAR = '2022'
|
||||
VERSION_DATE = '2022-07-07'
|
||||
TZ = 'Europe/London'
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user