mirror of
https://github.com/filegator/filegator.git
synced 2025-08-14 18:15:15 +02:00
timezone support/config added, fixed #102
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
* disabling axios response auto-transformation when editing content, fixes #110
|
* disabling axios response auto-transformation when editing content, fixes #110
|
||||||
* config params: .json and .md extensions added as 'editable' by default
|
* config params: .json and .md extensions added as 'editable' by default
|
||||||
|
* config params: timezone support added, mostly for accurate logging, defaults to UTC
|
||||||
|
* fixes #102
|
||||||
|
|
||||||
## 7.4.2 - 2020-07-18
|
## 7.4.2 - 2020-07-18
|
||||||
|
|
||||||
|
@@ -17,6 +17,9 @@ class Config
|
|||||||
public function __construct(array $config = [])
|
public function __construct(array $config = [])
|
||||||
{
|
{
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
|
$timezone = isset($this->config['timezone']) ? $this->config['timezone'] : 'UTC';
|
||||||
|
date_default_timezone_set($timezone);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get($key = null, $default = null)
|
public function get($key = null, $default = null)
|
||||||
|
@@ -4,6 +4,7 @@ return [
|
|||||||
'public_path' => APP_PUBLIC_PATH,
|
'public_path' => APP_PUBLIC_PATH,
|
||||||
'public_dir' => APP_PUBLIC_DIR,
|
'public_dir' => APP_PUBLIC_DIR,
|
||||||
'overwrite_on_upload' => false,
|
'overwrite_on_upload' => false,
|
||||||
|
'timezone' => 'UTC', // https://www.php.net/manual/en/timezones.php
|
||||||
|
|
||||||
'frontend_config' => [
|
'frontend_config' => [
|
||||||
'app_name' => 'FileGator',
|
'app_name' => 'FileGator',
|
||||||
|
@@ -4,6 +4,7 @@ return [
|
|||||||
'public_path' => '',
|
'public_path' => '',
|
||||||
'public_dir' => __DIR__.'/../../dist',
|
'public_dir' => __DIR__.'/../../dist',
|
||||||
'overwrite_on_upload' => false,
|
'overwrite_on_upload' => false,
|
||||||
|
'timezone' => 'UTC', // https://www.php.net/manual/en/timezones.php
|
||||||
|
|
||||||
'frontend_config' => [
|
'frontend_config' => [
|
||||||
'app_name' => 'FileGator',
|
'app_name' => 'FileGator',
|
||||||
|
Reference in New Issue
Block a user