{"action":"created","issue":{"url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2642","labels_url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2642/labels{/name}","comments_url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2642/comments","events_url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2642/events","html_url":"https://github.com/osTicket/osTicket-1.8/issues/2642","id":110798371,"number":2642,"title":"devnext: fatal @ getDbTimezone","user":{"login":"infectormp","id":9958813,"avatar_url":"https://avatars.githubusercontent.com/u/9958813?v=3","gravatar_id":"","url":"https://api.github.com/users/infectormp","html_url":"https://github.com/infectormp","followers_url":"https://api.github.com/users/infectormp/followers","following_url":"https://api.github.com/users/infectormp/following{/other_user}","gists_url":"https://api.github.com/users/infectormp/gists{/gist_id}","starred_url":"https://api.github.com/users/infectormp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infectormp/subscriptions","organizations_url":"https://api.github.com/users/infectormp/orgs","repos_url":"https://api.github.com/users/infectormp/repos","events_url":"https://api.github.com/users/infectormp/events{/privacy}","received_events_url":"https://api.github.com/users/infectormp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/osTicket/osTicket-1.8/labels/cause-unknown","name":"cause-unknown","color":"fad8c7"},{"url":"https://api.github.com/repos/osTicket/osTicket-1.8/labels/next","name":"next","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-10T14:49:03Z","updated_at":"2015-10-14T21:15:11Z","closed_at":null,"body":"Get ```Fatal error: Call to a member function getDbTimezone() on null in /xxx/include/class.misc.php on line 99``` @ install step with last devnext branch\r\n\r\nmariadb 10.1.7"},"comment":{"url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/comments/148202707","html_url":"https://github.com/osTicket/osTicket-1.8/issues/2642#issuecomment-148202707","issue_url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2642","id":148202707,"user":{"login":"infectormp","id":9958813,"avatar_url":"https://avatars.githubusercontent.com/u/9958813?v=3","gravatar_id":"","url":"https://api.github.com/users/infectormp","html_url":"https://github.com/infectormp","followers_url":"https://api.github.com/users/infectormp/followers","following_url":"https://api.github.com/users/infectormp/following{/other_user}","gists_url":"https://api.github.com/users/infectormp/gists{/gist_id}","starred_url":"https://api.github.com/users/infectormp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infectormp/subscriptions","organizations_url":"https://api.github.com/users/infectormp/orgs","repos_url":"https://api.github.com/users/infectormp/repos","events_url":"https://api.github.com/users/infectormp/events{/privacy}","received_events_url":"https://api.github.com/users/infectormp/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T21:15:11Z","updated_at":"2015-10-14T21:15:11Z","body":"\r\ni comment this lines in  function dbtime($var=null) in class.misc.php\r\n```if (!isset($dbtz)) {\r\n            $dbtz = new DateTimeZone($cfg->getDbTimezone());\r\n        }```\r\n```\r\n// UTC to db time\r\n        $D = DateTime::createFromFormat('U', $time);\r\n        return $time + $dbtz->getOffset($D); ```\r\n\r\nand then finish install step"}}