function start($configId) { if (!$configId || !($ost = new osTicket($configId)) || $ost->getConfigId() != $configId) { return null; } //Set default time zone... user/staff settting will overwrite it (on login). $_SESSION['TZ_OFFSET'] = $ost->getConfig()->getTZoffset(); $_SESSION['TZ_DST'] = $ost->getConfig()->observeDaylightSaving(); return $ost; }