Updated core, timezone detection

This commit is contained in:
markseu 2022-05-26 21:06:17 +02:00
parent fcf1d73862
commit 9f574ee93e
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
// Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
class YellowCore {
const VERSION = "0.8.82";
const VERSION = "0.8.83";
const RELEASE = "0.8.20";
public $page; // current page
public $content; // content files
@ -3257,7 +3257,7 @@ class YellowToolbox {
if (preg_match("/^(\S+)\/(\S+)/", $this->readFile("/etc/timezone"), $matches)) $timezone = $matches[1];
}
}
if (empty($timezone)) $timezone = "UTC";
if (!in_array($timezone, timezone_identifiers_list())) $timezone = "UTC";
return $timezone;
}

View file

@ -21,11 +21,11 @@ Tag: feature
system/extensions/command.php: command.php, create, update
Extension: Core
Version: 0.8.82
Version: 0.8.83
Description: Core functionality of the website.
DocumentationUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip
Published: 2022-05-16 17:15:20
Published: 2022-05-26 21:04:47
Developer: Datenstrom
Tag: feature
system/extensions/core.php: core.php, create, update