diff options
author | Miks Kronkalns <miks.kronkalns@zabbix.com> | 2020-10-13 16:40:51 +0300 |
---|---|---|
committer | Miks Kronkalns <miks.kronkalns@zabbix.com> | 2020-10-14 18:42:53 +0300 |
commit | c061793afd9cbd76aa2c3881822cea4e635560e2 (patch) | |
tree | be94c40701f8fab99446c0f04285e9d307bacb74 /ui/app/controllers/CControllerUserEditGeneral.php | |
parent | bcf0b341781b27da63c6f9043ff195a1e718d89d (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.php | 9 |
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(); } /** |