{"action":"opened","issue":{"url":"https://api.github.com/repos/mpdf/mpdf/issues/27","labels_url":"https://api.github.com/repos/mpdf/mpdf/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/mpdf/mpdf/issues/27/comments","events_url":"https://api.github.com/repos/mpdf/mpdf/issues/27/events","html_url":"https://github.com/mpdf/mpdf/issues/27","id":87649248,"number":27,"title":"Mpdf change timezone even if timezone is set","user":{"login":"kravcik","id":10499130,"avatar_url":"https://avatars.githubusercontent.com/u/10499130?v=3","gravatar_id":"","url":"https://api.github.com/users/kravcik","html_url":"https://github.com/kravcik","followers_url":"https://api.github.com/users/kravcik/followers","following_url":"https://api.github.com/users/kravcik/following{/other_user}","gists_url":"https://api.github.com/users/kravcik/gists{/gist_id}","starred_url":"https://api.github.com/users/kravcik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravcik/subscriptions","organizations_url":"https://api.github.com/users/kravcik/orgs","repos_url":"https://api.github.com/users/kravcik/repos","events_url":"https://api.github.com/users/kravcik/events{/privacy}","received_events_url":"https://api.github.com/users/kravcik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-12T08:05:22Z","updated_at":"2015-06-12T08:05:22Z","closed_at":null,"body":"I made some step-by-step test, where is problem with timezone on production server. \r\n\r\n1.\r\nServer setting timezone \"Europe\\Prague\"\r\ndate_default_timezone_get(); //Europe/Prague\r\n\r\n2.\r\nFramework (Nette) setting timezone \"Europe\\Prague\"\r\ndate_default_timezone_get(); //Europe/Prague\r\n\r\n3.\r\nLoading mPdf by autoload\r\ndate_default_timezone_get(); //Europe/London\r\n\r\n4.\r\nComment lanes:\r\n//if(function_exists(\"date_default_timezone_set\")) {\r\n\t//if (ini_get(\"date.timezone\")==\"\") { date_default_timezone_set(\"Europe/London\"); }\r\n//}\r\ndate_default_timezone_get(); //Europe/Prague"}}