{"action":"opened","issue":{"url":"https://api.github.com/repos/mpdf/mpdf/issues/270","repository_url":"https://api.github.com/repos/mpdf/mpdf","labels_url":"https://api.github.com/repos/mpdf/mpdf/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/mpdf/mpdf/issues/270/comments","events_url":"https://api.github.com/repos/mpdf/mpdf/issues/270/events","html_url":"https://github.com/mpdf/mpdf/issues/270","id":191352362,"number":270,"title":"Time is changed when PDF is generating","user":{"login":"1manfactory","id":232674,"avatar_url":"https://avatars.githubusercontent.com/u/232674?v=3","gravatar_id":"","url":"https://api.github.com/users/1manfactory","html_url":"https://github.com/1manfactory","followers_url":"https://api.github.com/users/1manfactory/followers","following_url":"https://api.github.com/users/1manfactory/following{/other_user}","gists_url":"https://api.github.com/users/1manfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/1manfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1manfactory/subscriptions","organizations_url":"https://api.github.com/users/1manfactory/orgs","repos_url":"https://api.github.com/users/1manfactory/repos","events_url":"https://api.github.com/users/1manfactory/events{/privacy}","received_events_url":"https://api.github.com/users/1manfactory/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-23T18:45:18Z","updated_at":"2016-11-23T18:45:18Z","closed_at":null,"body":"### I have this problem/would like to have this functionality\r\nI am logging all my generating processes to keep track of errors. I came across a jump back in time when mpdf is called.\r\n\r\n### These are mPDF and PHP versions I am using\r\nmPDF 6.1\r\nPHP 5.4.45\r\n\r\n### This is a PHP code snippet I use\r\n\r\n```\r\n$started=date(\"H:i:s\");\r\nprint $started.\"<br>\\n\";\r\n\r\nrequire_once '../../mpdf61/mpdf.php';\r\n\r\n$mpdf = new Mpdf();\r\n$mpdf->WriteHTML('<p style=\"font-size:4em;\">Started: '.$started.'</p>');\r\n$mpdf->WriteHTML('<p style=\"font-size:4em;\">Now: '.date(\"H:i:s\").'</p>');\r\n$mpdf->Output('./time.pdf');\r\n\r\nprint date(\"H:i:s\").\"<br>\\n\";\r\n?>\r\n\r\n```\r\nThis is the output on my screen:\r\n```\r\n19:40:30\r\n18:40:30\r\n```\r\n\r\nIt's the same in the attached file.\r\n[time.pdf](https://github.com/mpdf/mpdf/files/609724/time.pdf)\r\n\r\nAnd to make it worse, the process keeps it's now wrong time so even when I am finished with generating PDF files I am still on the wrong time."}}
{"actor":{"display_login":"1manfactory"}}