From 7dbcbdb006f0bb30d3c05f6121cb37429b8a518e Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Fri, 29 Apr 2022 17:47:28 +0800 Subject: [PATCH] [core.php] set timezone after check install --- include/core.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/core.php b/include/core.php index 5dc477fd..6420d117 100644 --- a/include/core.php +++ b/include/core.php @@ -3,7 +3,6 @@ ini_set('error_reporting', E_ALL); ini_set('display_errors', 0); require_once __DIR__ . '/constants.php'; require_once $rootpath . 'vendor/autoload.php'; -ini_set('date.timezone', nexus_config('nexus.timezone')); \Nexus\Nexus::boot(); if (!file_exists($rootpath . '.env')) { $installScriptRelativePath = 'install/install.php'; @@ -15,7 +14,7 @@ if (!file_exists($rootpath . '.env')) { require $rootpath . 'nexus/Database/helpers.php'; require $rootpath . 'classes/class_cache_redis.php'; require $rootpath . 'include/eloquent.php'; - +ini_set('date.timezone', nexus_config('nexus.timezone')); $Cache = new class_cache_redis(); //Load the caching class $Cache->setLanguageFolderArray(get_langfolder_list()); require $rootpath . 'include/config.php';