From: Banana Date: Tue, 21 Nov 2023 11:36:29 +0000 (+0100) Subject: added new config setting: TIMEZONE X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=fde584d08368ecb2870fed5c13d885120c0bdc76;p=insipid.git added new config setting: TIMEZONE --- diff --git a/ChangeLog b/ChangeLog index e6819ea..5bff93d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ version 2.x.x - Griffin Chapel () + + Added TIMEZONE as a new config setting. Please update your config. + See update.txt for more details. + Better logging + New home screen layout diff --git a/documentation/update.txt b/documentation/update.txt index 515a930..850faa2 100644 --- a/documentation/update.txt +++ b/documentation/update.txt @@ -1,6 +1,9 @@ If you are updating from a previous version make sure every update info from the version your are updating from is done. +## version 2.x.x - Griffin Chapel ++ Add new config setting TIMEZONE to your config. See config.default.php for more details + ## version 2.8.2 - Dragon Chapel + Add query debug setting to config file. See config.default.php for QUERY_DEBUG constant. Add it to your local config.php diff --git a/webroot/config.default.php b/webroot/config.default.php index 02674c4..30ddb3b 100644 --- a/webroot/config.default.php +++ b/webroot/config.default.php @@ -83,6 +83,9 @@ const EMAIL_REPLY_BACK_SUBJECT = 'Insipid email import response'; const COMPLETE_PAGE_SCREENSHOT = false; const COMPLETE_PAGE_SCREENSHOT_COMMAND = '/absolute/path/to/command'; +# Timezone setting +const TIMEZONE = 'Europe/Berlin'; + # debug const DEBUG = false; const QUERY_DEBUG = false; diff --git a/webroot/index.php b/webroot/index.php index e683941..c21624b 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -29,10 +29,8 @@ mb_http_output('UTF-8'); mb_internal_encoding('UTF-8'); error_reporting(-1); // E_ALL & E_STRICT -# time settings -date_default_timezone_set('Europe/Berlin'); - require('config.php'); +date_default_timezone_set(TIMEZONE); ## check request $_urlToParse = filter_var($_SERVER['QUERY_STRING'],FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_LOW); diff --git a/webroot/job/email-import.php b/webroot/job/email-import.php index cd7afdf..7fe1444 100644 --- a/webroot/job/email-import.php +++ b/webroot/job/email-import.php @@ -29,10 +29,8 @@ mb_http_output('UTF-8'); mb_internal_encoding('UTF-8'); error_reporting(-1); // E_ALL & E_STRICT -# time settings -date_default_timezone_set('Europe/Berlin'); - require('../config.php'); +date_default_timezone_set(TIMEZONE); ## set the error reporting ini_set('log_errors',true);;