{"action":"opened","issue":{"url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/98","repository_url":"https://api.github.com/repos/u01jmg3/ics-parser","labels_url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/98/comments","events_url":"https://api.github.com/repos/u01jmg3/ics-parser/issues/98/events","html_url":"https://github.com/u01jmg3/ics-parser/issues/98","id":193899740,"number":98,"title":"X-WR-TIMEZONE causes EXDATE of series to be ignored","user":{"login":"dominikschreiber","id":1219916,"avatar_url":"https://avatars.githubusercontent.com/u/1219916?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikschreiber","html_url":"https://github.com/dominikschreiber","followers_url":"https://api.github.com/users/dominikschreiber/followers","following_url":"https://api.github.com/users/dominikschreiber/following{/other_user}","gists_url":"https://api.github.com/users/dominikschreiber/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikschreiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikschreiber/subscriptions","organizations_url":"https://api.github.com/users/dominikschreiber/orgs","repos_url":"https://api.github.com/users/dominikschreiber/repos","events_url":"https://api.github.com/users/dominikschreiber/events{/privacy}","received_events_url":"https://api.github.com/users/dominikschreiber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T22:09:39Z","updated_at":"2016-12-06T22:09:39Z","closed_at":null,"body":"## issue description\r\n\r\nI'm experiencing deleted series entries of a google calendar being shown in the `$ical->eventsFromRange` result. In my attempt to find out why this happens, I observed that `X-WR-TIMEZONE:Europe/Berlin` seems to cause the `EXDATE` to be ignored. If you remove this line, the `EXDATE` has effect.\r\n\r\nSee a minimal example below.\r\n\r\nSadly I'm too bad of a php developer to fix this with a pull request, but I hope you can work with the information I have here.\r\n\r\n## minimal example\r\n\r\n```ics\r\n# file: basic.ics\r\nBEGIN:VCALENDAR\r\nVERSION:2.0\r\nCALSCALE:GREGORIAN\r\nMETHOD:PUBLISH\r\nX-WR-TIMEZONE:Europe/Berlin\r\nBEGIN:VEVENT\r\nDTSTART:20161205T140000\r\nDTEND:20161205T160000\r\nRRULE:FREQ=MONTHLY;BYDAY=1MO\r\nEXDATE:20170102T140000\r\nDTSTAMP:20161206T211738Z\r\nSEQUENCE:0\r\nSTATUS:CONFIRMED\r\nTRANSP:OPAQUE\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n```\r\n\r\n```php\r\n<?php // file: index.php\r\ndate_default_timezone_set('europe/berlin');\r\n$ical = new ICal(explode(\"\\r\\n\", file_get_contents(\"basic.ics\")));\r\n?>\r\n<ul><?php foreach ($ical->eventsFromRange(\"2017-01-01\", \"2017-03-31\") as $e) { ?>\r\n  <li><?php echo strftime(\"%d.%m.%y\", $ical->iCalDateToUnixTimestamp($e->dtstart)); } ?>\r\n</ul>\r\n```\r\n\r\n## expected result\r\n\r\n- 06.02.17\r\n- 06.03.17\r\n\r\n## actual result\r\n\r\n- **02.01.17**\r\n- 06.02.17\r\n- 06.03.17"}}
{"actor":{"display_login":"dominikschreiber"}}