{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/7270","repository_url":"https://api.github.com/repos/facebook/hhvm","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/7270/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/7270/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/7270/events","html_url":"https://github.com/facebook/hhvm/issues/7270","id":169710155,"number":7270,"title":"Unknown or bad timezone (GMT+1)","user":{"login":"karek314","id":9548618,"avatar_url":"https://avatars1.githubusercontent.com/u/9548618?v=4","gravatar_id":"","url":"https://api.github.com/users/karek314","html_url":"https://github.com/karek314","followers_url":"https://api.github.com/users/karek314/followers","following_url":"https://api.github.com/users/karek314/following{/other_user}","gists_url":"https://api.github.com/users/karek314/gists{/gist_id}","starred_url":"https://api.github.com/users/karek314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karek314/subscriptions","organizations_url":"https://api.github.com/users/karek314/orgs","repos_url":"https://api.github.com/users/karek314/repos","events_url":"https://api.github.com/users/karek314/events{/privacy}","received_events_url":"https://api.github.com/users/karek314/received_events","type":"User","site_admin":false},"labels":[{"id":34421,"url":"https://api.github.com/repos/facebook/hhvm/labels/php5%20incompatibility","name":"php5 incompatibility","color":"837ced","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-05T22:46:54Z","updated_at":"2018-02-23T01:58:24Z","closed_at":null,"author_association":"NONE","body":"It's not possible to use \"GMT+1\",\"GMT+2\" or just \"+1\" - Error \"Unknown or bad timezone\"\n\n```\n$gmt0 = new DateTime( 'now', new DateTimeZone('GMT+0'));\n$gmt1 = new DateTime( 'now', new DateTimeZone('GMT+1'));\n$gmt2 = new DateTime( 'now', new DateTimeZone('GMT+2'));\n$gmt3 = new DateTime( 'now', new DateTimeZone('GMT+3'));\n```\n\nThose examples works correctly on any php version i was able to test, but result in error on hhvm.\n\nSimple workaround for this would be\n\n```\n$gmt0 = new DateTime('now', new DateTimeZone('UTC'));\n$gmt1 = new DateTime('now', new DateTimeZone('UTC'));\n$gmt1->add(new DateInterval('PT1H'));\n$gmt2 = new DateTime('now', new DateTimeZone('UTC'));\n$gmt2->add(new DateInterval('PT2H'));\n$gmt3 = new DateTime('now', new DateTimeZone('UTC'));\n$gmt3->add(new DateInterval('PT3H'));\n```\n\nHipHop VM 3.13.2 (rel)\nCompiler: tags/HHVM-3.13.2-0-g64d6782149a51585d2bdc3b67dd399f2ef630517\nRepo schema: 8c57ad2276433d9fafaf454878290df2e75e03a0\n"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/367885780","html_url":"https://github.com/facebook/hhvm/issues/7270#issuecomment-367885780","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/7270","id":367885780,"user":{"login":"apeabody","id":14035345,"avatar_url":"https://avatars3.githubusercontent.com/u/14035345?v=4","gravatar_id":"","url":"https://api.github.com/users/apeabody","html_url":"https://github.com/apeabody","followers_url":"https://api.github.com/users/apeabody/followers","following_url":"https://api.github.com/users/apeabody/following{/other_user}","gists_url":"https://api.github.com/users/apeabody/gists{/gist_id}","starred_url":"https://api.github.com/users/apeabody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apeabody/subscriptions","organizations_url":"https://api.github.com/users/apeabody/orgs","repos_url":"https://api.github.com/users/apeabody/repos","events_url":"https://api.github.com/users/apeabody/events{/privacy}","received_events_url":"https://api.github.com/users/apeabody/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T01:58:24Z","updated_at":"2018-02-23T01:58:24Z","author_association":"CONTRIBUTOR","body":"Hi @craigcarnell - Unfortunately I am no longer actively working on this project.  If your use case allows, I might suggest trying the workaround of 'Etc/GMT+1' as the timezone."}}
{"actor":{"display_login":"apeabody"}}