{"action":"created","comment":{"url":"https://api.github.com/repos/owncloud/calendar/pulls/comments/28584790","id":28584790,"diff_hunk":"@@ -1055,38 +1057,56 @@ public static function updateVCalendarFromRequest($request, $vcalendar) {\n \t\t\t\tlist($bydate_day, $bydate_month, $bydate_year) = explode('-', $request['bydate']);\n \t\t\t\t$rrule .= ';UNTIL=' . $bydate_year . $bydate_month . $bydate_day;\n \t\t\t}\n-\t\t\t$vevent->setString('RRULE', $rrule);\n+\t\t\t$vevent->RRULE = $rrule;\n \t\t\t$repeat = \"true\";\n \t\t}else{\n \t\t\t$repeat = \"false\";\n \t\t}\n \n+\t\t$now = new DateTime('now');\n+\t\t$now->setTimeZone(new \\DateTimeZone('UTC'));\n+\t\t$lastModified = $vevent->__get('LAST-MODIFIED');\n+\t\tif (is_null($lastModified)) {\n+\t\t\t$lastModified = $vevent->add('LAST-MODIFIED');\n+\t\t}\n+\t\t$lastModified->setValue($now);","path":"lib/object.php","position":175,"original_position":175,"commit_id":"e9fc0eb27b3a09d2be6abbd35f521e747586dcb2","original_commit_id":"e9fc0eb27b3a09d2be6abbd35f521e747586dcb2","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"body":"@evert is there a better way to do this ?\r\nBecause \"$vevent->LAST-MODIFIED\" is a syntax error, so I need to use \"$vevent->__get('LAST-MODIFIED')\" which might not exist.\r\nIt looks like direct access/assignment usually auto-creates the property ?","created_at":"2015-04-17T10:48:01Z","updated_at":"2015-04-17T10:48:01Z","html_url":"https://github.com/owncloud/calendar/pull/771#discussion_r28584790","pull_request_url":"https://api.github.com/repos/owncloud/calendar/pulls/771","_links":{"self":{"href":"https://api.github.com/repos/owncloud/calendar/pulls/comments/28584790"},"html":{"href":"https://github.com/owncloud/calendar/pull/771#discussion_r28584790"},"pull_request":{"href":"https://api.github.com/repos/owncloud/calendar/pulls/771"}}},"pull_request":{"url":"https://api.github.com/repos/owncloud/calendar/pulls/771","id":33462949,"html_url":"https://github.com/owncloud/calendar/pull/771","diff_url":"https://github.com/owncloud/calendar/pull/771.diff","patch_url":"https://github.com/owncloud/calendar/pull/771.patch","issue_url":"https://api.github.com/repos/owncloud/calendar/issues/771","number":771,"state":"closed","locked":false,"title":"Update sabre2.1 dates","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"body":"The show goes on...\r\n","created_at":"2015-04-16T15:31:41Z","updated_at":"2015-04-17T10:48:01Z","closed_at":"2015-04-16T18:07:52Z","merged_at":"2015-04-16T18:07:52Z","merge_commit_sha":"fce4631c0cc58290f7dc65519e5b4bc550dd5823","assignee":{"login":"georgehrke","id":1250540,"avatar_url":"https://avatars.githubusercontent.com/u/1250540?v=3","gravatar_id":"","url":"https://api.github.com/users/georgehrke","html_url":"https://github.com/georgehrke","followers_url":"https://api.github.com/users/georgehrke/followers","following_url":"https://api.github.com/users/georgehrke/following{/other_user}","gists_url":"https://api.github.com/users/georgehrke/gists{/gist_id}","starred_url":"https://api.github.com/users/georgehrke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgehrke/subscriptions","organizations_url":"https://api.github.com/users/georgehrke/orgs","repos_url":"https://api.github.com/users/georgehrke/repos","events_url":"https://api.github.com/users/georgehrke/events{/privacy}","received_events_url":"https://api.github.com/users/georgehrke/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/owncloud/calendar/pulls/771/commits","review_comments_url":"https://api.github.com/repos/owncloud/calendar/pulls/771/comments","review_comment_url":"https://api.github.com/repos/owncloud/calendar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/calendar/issues/771/comments","statuses_url":"https://api.github.com/repos/owncloud/calendar/statuses/e9fc0eb27b3a09d2be6abbd35f521e747586dcb2","head":{"label":"owncloud:update-sabre2.1-dates","ref":"update-sabre2.1-dates","sha":"e9fc0eb27b3a09d2be6abbd35f521e747586dcb2","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":9368729,"name":"calendar","full_name":"owncloud/calendar","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/calendar","description":"The ownCloud calendar app","fork":false,"url":"https://api.github.com/repos/owncloud/calendar","forks_url":"https://api.github.com/repos/owncloud/calendar/forks","keys_url":"https://api.github.com/repos/owncloud/calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/calendar/teams","hooks_url":"https://api.github.com/repos/owncloud/calendar/hooks","issue_events_url":"https://api.github.com/repos/owncloud/calendar/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/calendar/events","assignees_url":"https://api.github.com/repos/owncloud/calendar/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/calendar/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/calendar/tags","blobs_url":"https://api.github.com/repos/owncloud/calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/calendar/languages","stargazers_url":"https://api.github.com/repos/owncloud/calendar/stargazers","contributors_url":"https://api.github.com/repos/owncloud/calendar/contributors","subscribers_url":"https://api.github.com/repos/owncloud/calendar/subscribers","subscription_url":"https://api.github.com/repos/owncloud/calendar/subscription","commits_url":"https://api.github.com/repos/owncloud/calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/calendar/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/calendar/merges","archive_url":"https://api.github.com/repos/owncloud/calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/calendar/downloads","issues_url":"https://api.github.com/repos/owncloud/calendar/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/calendar/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/calendar/releases{/id}","created_at":"2013-04-11T11:31:28Z","updated_at":"2015-04-17T04:58:58Z","pushed_at":"2015-04-17T09:47:35Z","git_url":"git://github.com/owncloud/calendar.git","ssh_url":"git@github.com:owncloud/calendar.git","clone_url":"https://github.com/owncloud/calendar.git","svn_url":"https://github.com/owncloud/calendar","homepage":"","size":31115,"stargazers_count":152,"watchers_count":152,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":260,"forks":94,"open_issues":260,"watchers":152,"default_branch":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"e68c5838b9b34706d6f134a4bf908a5a26fbbd01","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":9368729,"name":"calendar","full_name":"owncloud/calendar","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/calendar","description":"The ownCloud calendar app","fork":false,"url":"https://api.github.com/repos/owncloud/calendar","forks_url":"https://api.github.com/repos/owncloud/calendar/forks","keys_url":"https://api.github.com/repos/owncloud/calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/calendar/teams","hooks_url":"https://api.github.com/repos/owncloud/calendar/hooks","issue_events_url":"https://api.github.com/repos/owncloud/calendar/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/calendar/events","assignees_url":"https://api.github.com/repos/owncloud/calendar/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/calendar/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/calendar/tags","blobs_url":"https://api.github.com/repos/owncloud/calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/calendar/languages","stargazers_url":"https://api.github.com/repos/owncloud/calendar/stargazers","contributors_url":"https://api.github.com/repos/owncloud/calendar/contributors","subscribers_url":"https://api.github.com/repos/owncloud/calendar/subscribers","subscription_url":"https://api.github.com/repos/owncloud/calendar/subscription","commits_url":"https://api.github.com/repos/owncloud/calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/calendar/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/calendar/merges","archive_url":"https://api.github.com/repos/owncloud/calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/calendar/downloads","issues_url":"https://api.github.com/repos/owncloud/calendar/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/calendar/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/calendar/releases{/id}","created_at":"2013-04-11T11:31:28Z","updated_at":"2015-04-17T04:58:58Z","pushed_at":"2015-04-17T09:47:35Z","git_url":"git://github.com/owncloud/calendar.git","ssh_url":"git@github.com:owncloud/calendar.git","clone_url":"https://github.com/owncloud/calendar.git","svn_url":"https://github.com/owncloud/calendar","homepage":"","size":31115,"stargazers_count":152,"watchers_count":152,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":260,"forks":94,"open_issues":260,"watchers":152,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/calendar/pulls/771"},"html":{"href":"https://github.com/owncloud/calendar/pull/771"},"issue":{"href":"https://api.github.com/repos/owncloud/calendar/issues/771"},"comments":{"href":"https://api.github.com/repos/owncloud/calendar/issues/771/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/calendar/pulls/771/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/calendar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/calendar/pulls/771/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/calendar/statuses/e9fc0eb27b3a09d2be6abbd35f521e747586dcb2"}}}}