mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
parent
fdfb945ed0
commit
ef5c919803
@ -21,6 +21,11 @@ home_locale: en
|
||||
## If user does not provide known lang
|
||||
default_locale: en
|
||||
|
||||
# A timezone to use. Leave this value empty to use the default timezone from the
|
||||
# system settings. For the details about available timezones see
|
||||
# http://php.net/manual/en/timezones.php
|
||||
timezone: ""
|
||||
|
||||
# Plugins
|
||||
plugins: []
|
||||
|
||||
|
@ -67,9 +67,10 @@ if (is_secure_request()) {
|
||||
session_start();
|
||||
|
||||
if (function_exists("date_default_timezone_set")) {
|
||||
// TODO try to get timezone from config.yml/session etc.
|
||||
// autodetect timezone
|
||||
@date_default_timezone_set(function_exists("date_default_timezone_get") ? @date_default_timezone_get() : "GMT");
|
||||
$timezone = !empty($configs['timezone'])
|
||||
? $configs['timezone']
|
||||
: (function_exists("date_default_timezone_get") ? @date_default_timezone_get() : "GMT");
|
||||
@date_default_timezone_set($timezone);
|
||||
}
|
||||
|
||||
if (!installation_in_progress()) {
|
||||
|
Loading…
Reference in New Issue
Block a user