commit 9f574ee93e2c429d63613e7d45a18f7b86c2d7eb
parent fcf1d7386275e62028b0e828e830075ae1e771f3
Author: markseu <mark2011@mayberg.se>
Date: Thu, 26 May 2022 21:06:17 +0200
Updated core, timezone detection
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/system/extensions/core.php b/system/extensions/core.php
@@ -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;
}
diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini
@@ -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