Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiks Kronkalns <miks.kronkalns@zabbix.com>2020-10-13 16:40:51 +0300
committerMiks Kronkalns <miks.kronkalns@zabbix.com>2020-10-14 18:42:53 +0300
commitc061793afd9cbd76aa2c3881822cea4e635560e2 (patch)
treebe94c40701f8fab99446c0f04285e9d307bacb74 /ui/app/controllers/CControllerUserEditGeneral.php
parentbcf0b341781b27da63c6f9043ff195a1e718d89d (diff)
A.F....... [ZBX-18470] fixed unusefull timezone formatting; replaced comboboxes by CSelect elements for timezone selection
Diffstat (limited to 'ui/app/controllers/CControllerUserEditGeneral.php')
-rw-r--r--ui/app/controllers/CControllerUserEditGeneral.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/app/controllers/CControllerUserEditGeneral.php b/ui/app/controllers/CControllerUserEditGeneral.php
index 9182cbf7345..77d47bfcfc3 100644
--- a/ui/app/controllers/CControllerUserEditGeneral.php
+++ b/ui/app/controllers/CControllerUserEditGeneral.php
@@ -31,8 +31,17 @@ abstract class CControllerUserEditGeneral extends CController {
*/
protected $user = [];
+ /**
+ * @var array
+ */
+ protected $timezones = [];
+
protected function init() {
$this->disableSIDValidation();
+
+ $this->timezones = [
+ TIMEZONE_DEFAULT => CDateTimeZoneHelper::getDefaultDateTimeZone()
+ ] + (new CDateTimeZoneHelper())->getAllDateTimeZones();
}
/**