t('Application default')) + $listing; } return $listing; } /** * Get current timezone * * @access public * @return string */ public function getCurrentTimezone() { if ($this->userSession->isLogged() && ! empty($this->sessionStorage->user['timezone'])) { return $this->sessionStorage->user['timezone']; } return $this->config->get('application_timezone', 'UTC'); } /** * Set timezone * * @access public */ public function setCurrentTimezone() { date_default_timezone_set($this->getCurrentTimezone()); } }