{"action":"created","issue":{"url":"https://api.github.com/repos/cdamman/UCL2ICS/issues/8","repository_url":"https://api.github.com/repos/cdamman/UCL2ICS","labels_url":"https://api.github.com/repos/cdamman/UCL2ICS/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/cdamman/UCL2ICS/issues/8/comments","events_url":"https://api.github.com/repos/cdamman/UCL2ICS/issues/8/events","html_url":"https://github.com/cdamman/UCL2ICS/issues/8","id":175733097,"number":8,"title":"Events at the same time are not all displayed at import.","user":{"login":"jamalaberque","id":22075026,"avatar_url":"https://avatars0.githubusercontent.com/u/22075026?v=4","gravatar_id":"","url":"https://api.github.com/users/jamalaberque","html_url":"https://github.com/jamalaberque","followers_url":"https://api.github.com/users/jamalaberque/followers","following_url":"https://api.github.com/users/jamalaberque/following{/other_user}","gists_url":"https://api.github.com/users/jamalaberque/gists{/gist_id}","starred_url":"https://api.github.com/users/jamalaberque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamalaberque/subscriptions","organizations_url":"https://api.github.com/users/jamalaberque/orgs","repos_url":"https://api.github.com/users/jamalaberque/repos","events_url":"https://api.github.com/users/jamalaberque/events{/privacy}","received_events_url":"https://api.github.com/users/jamalaberque/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-08T11:47:14Z","updated_at":"2017-09-23T09:40:30Z","closed_at":"2017-09-23T09:40:30Z","author_association":"NONE","body":"Only one of two or more events with the same time slot will ever get imported in Google Calendar or Apple iCal.\nI believe this happens because of a conflict between badly generated UIDs.\nUID are generated here : https://github.com/cdamman/UCL2ICS/blob/master/php/ade.php\n\n```\nif(isset($_POST['email']) && $_POST['email'] != \"null\") {\n    $buf_ics .= \"UID:\".date('Ymd\\THi').$stamp_id.'Z-'.$date.'T'.$heuress[0].$heuress[1].$stamp_id.'Z-'.$_POST['email'].'@'.$_SERVER['SERVER_NAME'].\"\\n\";\n} else {\n    $buf_ics .= \"UID:\".date('Ymd\\THi').$stamp_id.'Z-'.$date.'T'.$heuress[0].$heuress[1].$stamp_id.'Z-'.$stamp6.'@'.$_SERVER['SERVER_NAME'].\"\\n\";\n}\n```\n\nThey end up being per time slot and non unique, which does not comply with [RFC 5545 §3.8.4.7](http://icalendar.org/iCalendar-RFC-5545/3-8-4-7-unique-identifier.html).\n\nExample of conflict between two exported events :\n\n```\nBEGIN:VEVENT\nDESCRIPTION:LECGE1212-1-FM\nUID:20160908T105935Z-20160920T140035Z-896721@ucl2icsphp.appspot.com\nDTSTAMP:20160908T105935Z\nDTSTART;TZID=\"Bruxelles, Copenhague, Madrid, Paris\":20160920T140000\nDTEND;TZID=\"Bruxelles, Copenhague, Madrid, Paris\":20160920T160000\nLOCATION:SCES 10 \nSUMMARY:Macroéconomie\nEND:VEVENT\nBEGIN:VEVENT\nDESCRIPTION:LINGI1101-1\nUID:20160908T105935Z-20160920T140035Z-896721@ucl2icsphp.appspot.com\nDTSTAMP:20160908T105935Z\nDTSTART;TZID=\"Bruxelles, Copenhague, Madrid, Paris\":20160920T140000\nDTEND;TZID=\"Bruxelles, Copenhague, Madrid, Paris\":20160920T160000\nLOCATION:BARB 91 \nSUMMARY:Logique et structure discrètes (CM)\nEND:VEVENT  \n```\n"},"comment":{"url":"https://api.github.com/repos/cdamman/UCL2ICS/issues/comments/331623124","html_url":"https://github.com/cdamman/UCL2ICS/issues/8#issuecomment-331623124","issue_url":"https://api.github.com/repos/cdamman/UCL2ICS/issues/8","id":331623124,"user":{"login":"cdamman","id":1500186,"avatar_url":"https://avatars2.githubusercontent.com/u/1500186?v=4","gravatar_id":"","url":"https://api.github.com/users/cdamman","html_url":"https://github.com/cdamman","followers_url":"https://api.github.com/users/cdamman/followers","following_url":"https://api.github.com/users/cdamman/following{/other_user}","gists_url":"https://api.github.com/users/cdamman/gists{/gist_id}","starred_url":"https://api.github.com/users/cdamman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdamman/subscriptions","organizations_url":"https://api.github.com/users/cdamman/orgs","repos_url":"https://api.github.com/users/cdamman/repos","events_url":"https://api.github.com/users/cdamman/events{/privacy}","received_events_url":"https://api.github.com/users/cdamman/received_events","type":"User","site_admin":false},"created_at":"2017-09-23T09:40:30Z","updated_at":"2017-09-23T09:40:30Z","author_association":"OWNER","body":"This should be fixed now. Thanks for your comment"}}
{"actor":{"display_login":"cdamman"}}