{"action":"created","comment":{"url":"https://api.github.com/repos/opf/openproject/pulls/comments/29251659","id":29251659,"diff_hunk":"@@ -323,6 +335,9 @@ module.exports = function(\n   function format(workPackage, field) {\n     var schema = getSchema(workPackage);\n     if (field === 'date') {\n+      if(workPackage.embedded.type.props.name === 'Milestone') {\n+        return workPackage.props.startDate;","path":"frontend/app/work_packages/services/work-package-field-service.js","position":43,"original_position":43,"commit_id":"f09ebdaea76900577fb82e1a88f22df5e176165a","original_commit_id":"f09ebdaea76900577fb82e1a88f22df5e176165a","user":{"login":"0xF013","id":1038822,"avatar_url":"https://avatars.githubusercontent.com/u/1038822?v=3","gravatar_id":"","url":"https://api.github.com/users/0xF013","html_url":"https://github.com/0xF013","followers_url":"https://api.github.com/users/0xF013/followers","following_url":"https://api.github.com/users/0xF013/following{/other_user}","gists_url":"https://api.github.com/users/0xF013/gists{/gist_id}","starred_url":"https://api.github.com/users/0xF013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xF013/subscriptions","organizations_url":"https://api.github.com/users/0xF013/orgs","repos_url":"https://api.github.com/users/0xF013/repos","events_url":"https://api.github.com/users/0xF013/events{/privacy}","received_events_url":"https://api.github.com/users/0xF013/received_events","type":"User","site_admin":false},"body":"@Azure7111 we need to know that the type in the form response is a Milestone because we first do a post request to the form endpoint, and it returns only a link to the type. I am not sure if making another blocking request to the type endoint on each type change is worth it","created_at":"2015-04-28T15:03:56Z","updated_at":"2015-04-28T15:03:56Z","html_url":"https://github.com/opf/openproject/pull/2900#discussion_r29251659","pull_request_url":"https://api.github.com/repos/opf/openproject/pulls/2900","_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments/29251659"},"html":{"href":"https://github.com/opf/openproject/pull/2900#discussion_r29251659"},"pull_request":{"href":"https://api.github.com/repos/opf/openproject/pulls/2900"}}},"pull_request":{"url":"https://api.github.com/repos/opf/openproject/pulls/2900","id":33848615,"html_url":"https://github.com/opf/openproject/pull/2900","diff_url":"https://github.com/opf/openproject/pull/2900.diff","patch_url":"https://github.com/opf/openproject/pull/2900.patch","issue_url":"https://api.github.com/repos/opf/openproject/issues/2900","number":2900,"state":"open","locked":false,"title":"Fix reversing dates","user":{"login":"hirtie-maxim","id":6662687,"avatar_url":"https://avatars.githubusercontent.com/u/6662687?v=3","gravatar_id":"","url":"https://api.github.com/users/hirtie-maxim","html_url":"https://github.com/hirtie-maxim","followers_url":"https://api.github.com/users/hirtie-maxim/followers","following_url":"https://api.github.com/users/hirtie-maxim/following{/other_user}","gists_url":"https://api.github.com/users/hirtie-maxim/gists{/gist_id}","starred_url":"https://api.github.com/users/hirtie-maxim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirtie-maxim/subscriptions","organizations_url":"https://api.github.com/users/hirtie-maxim/orgs","repos_url":"https://api.github.com/users/hirtie-maxim/repos","events_url":"https://api.github.com/users/hirtie-maxim/events{/privacy}","received_events_url":"https://api.github.com/users/hirtie-maxim/received_events","type":"User","site_admin":false},"body":" [``* `#19721` Date picker seems to reverse day and months, when day > 12 error message thrown``](http://community.openproject.org/work_packages/19721)\r\nalso\r\n [``* `#19719`  ISO-format not being used for date picker input and no hint of correct format shown``](http://community.openproject.org/work_packages/19719)\r\nand\r\n[``* `#19718`  Two date pickers displayed when editing date of work package which is milestone``](http://community.openproject.org/work_packages/19718)\r\nand\r\n[``* `#19817`  Remove \"Clear button\"``](http://community.openproject.org/work_packages/19817)","created_at":"2015-04-22T11:21:22Z","updated_at":"2015-04-28T15:03:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87b70b3f6e9bff8bcf84a58b5d62f1b3e8f34c98","assignee":{"login":"hirtie-maxim","id":6662687,"avatar_url":"https://avatars.githubusercontent.com/u/6662687?v=3","gravatar_id":"","url":"https://api.github.com/users/hirtie-maxim","html_url":"https://github.com/hirtie-maxim","followers_url":"https://api.github.com/users/hirtie-maxim/followers","following_url":"https://api.github.com/users/hirtie-maxim/following{/other_user}","gists_url":"https://api.github.com/users/hirtie-maxim/gists{/gist_id}","starred_url":"https://api.github.com/users/hirtie-maxim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirtie-maxim/subscriptions","organizations_url":"https://api.github.com/users/hirtie-maxim/orgs","repos_url":"https://api.github.com/users/hirtie-maxim/repos","events_url":"https://api.github.com/users/hirtie-maxim/events{/privacy}","received_events_url":"https://api.github.com/users/hirtie-maxim/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/opf/openproject/milestones/1","html_url":"https://github.com/opf/openproject/milestones/4.1","labels_url":"https://api.github.com/repos/opf/openproject/milestones/1/labels","id":1063126,"number":1,"title":"4.1","description":"","creator":{"login":"myabc","id":755,"avatar_url":"https://avatars.githubusercontent.com/u/755?v=3","gravatar_id":"","url":"https://api.github.com/users/myabc","html_url":"https://github.com/myabc","followers_url":"https://api.github.com/users/myabc/followers","following_url":"https://api.github.com/users/myabc/following{/other_user}","gists_url":"https://api.github.com/users/myabc/gists{/gist_id}","starred_url":"https://api.github.com/users/myabc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myabc/subscriptions","organizations_url":"https://api.github.com/users/myabc/orgs","repos_url":"https://api.github.com/users/myabc/repos","events_url":"https://api.github.com/users/myabc/events{/privacy}","received_events_url":"https://api.github.com/users/myabc/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":37,"state":"open","created_at":"2015-04-11T14:25:25Z","updated_at":"2015-04-28T14:28:12Z","due_on":"2015-04-29T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/opf/openproject/pulls/2900/commits","review_comments_url":"https://api.github.com/repos/opf/openproject/pulls/2900/comments","review_comment_url":"https://api.github.com/repos/opf/openproject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opf/openproject/issues/2900/comments","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/f09ebdaea76900577fb82e1a88f22df5e176165a","head":{"label":"hirtie-maxim:fix/19721_datepicker_reverse_dates","ref":"fix/19721_datepicker_reverse_dates","sha":"f09ebdaea76900577fb82e1a88f22df5e176165a","user":{"login":"hirtie-maxim","id":6662687,"avatar_url":"https://avatars.githubusercontent.com/u/6662687?v=3","gravatar_id":"","url":"https://api.github.com/users/hirtie-maxim","html_url":"https://github.com/hirtie-maxim","followers_url":"https://api.github.com/users/hirtie-maxim/followers","following_url":"https://api.github.com/users/hirtie-maxim/following{/other_user}","gists_url":"https://api.github.com/users/hirtie-maxim/gists{/gist_id}","starred_url":"https://api.github.com/users/hirtie-maxim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirtie-maxim/subscriptions","organizations_url":"https://api.github.com/users/hirtie-maxim/orgs","repos_url":"https://api.github.com/users/hirtie-maxim/repos","events_url":"https://api.github.com/users/hirtie-maxim/events{/privacy}","received_events_url":"https://api.github.com/users/hirtie-maxim/received_events","type":"User","site_admin":false},"repo":{"id":30593650,"name":"openproject","full_name":"hirtie-maxim/openproject","owner":{"login":"hirtie-maxim","id":6662687,"avatar_url":"https://avatars.githubusercontent.com/u/6662687?v=3","gravatar_id":"","url":"https://api.github.com/users/hirtie-maxim","html_url":"https://github.com/hirtie-maxim","followers_url":"https://api.github.com/users/hirtie-maxim/followers","following_url":"https://api.github.com/users/hirtie-maxim/following{/other_user}","gists_url":"https://api.github.com/users/hirtie-maxim/gists{/gist_id}","starred_url":"https://api.github.com/users/hirtie-maxim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirtie-maxim/subscriptions","organizations_url":"https://api.github.com/users/hirtie-maxim/orgs","repos_url":"https://api.github.com/users/hirtie-maxim/repos","events_url":"https://api.github.com/users/hirtie-maxim/events{/privacy}","received_events_url":"https://api.github.com/users/hirtie-maxim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hirtie-maxim/openproject","description":"OpenProject is a web-based project management system built on Ruby on Rails","fork":true,"url":"https://api.github.com/repos/hirtie-maxim/openproject","forks_url":"https://api.github.com/repos/hirtie-maxim/openproject/forks","keys_url":"https://api.github.com/repos/hirtie-maxim/openproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hirtie-maxim/openproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hirtie-maxim/openproject/teams","hooks_url":"https://api.github.com/repos/hirtie-maxim/openproject/hooks","issue_events_url":"https://api.github.com/repos/hirtie-maxim/openproject/issues/events{/number}","events_url":"https://api.github.com/repos/hirtie-maxim/openproject/events","assignees_url":"https://api.github.com/repos/hirtie-maxim/openproject/assignees{/user}","branches_url":"https://api.github.com/repos/hirtie-maxim/openproject/branches{/branch}","tags_url":"https://api.github.com/repos/hirtie-maxim/openproject/tags","blobs_url":"https://api.github.com/repos/hirtie-maxim/openproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hirtie-maxim/openproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hirtie-maxim/openproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/hirtie-maxim/openproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hirtie-maxim/openproject/statuses/{sha}","languages_url":"https://api.github.com/repos/hirtie-maxim/openproject/languages","stargazers_url":"https://api.github.com/repos/hirtie-maxim/openproject/stargazers","contributors_url":"https://api.github.com/repos/hirtie-maxim/openproject/contributors","subscribers_url":"https://api.github.com/repos/hirtie-maxim/openproject/subscribers","subscription_url":"https://api.github.com/repos/hirtie-maxim/openproject/subscription","commits_url":"https://api.github.com/repos/hirtie-maxim/openproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/hirtie-maxim/openproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/hirtie-maxim/openproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/hirtie-maxim/openproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/hirtie-maxim/openproject/contents/{+path}","compare_url":"https://api.github.com/repos/hirtie-maxim/openproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hirtie-maxim/openproject/merges","archive_url":"https://api.github.com/repos/hirtie-maxim/openproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hirtie-maxim/openproject/downloads","issues_url":"https://api.github.com/repos/hirtie-maxim/openproject/issues{/number}","pulls_url":"https://api.github.com/repos/hirtie-maxim/openproject/pulls{/number}","milestones_url":"https://api.github.com/repos/hirtie-maxim/openproject/milestones{/number}","notifications_url":"https://api.github.com/repos/hirtie-maxim/openproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hirtie-maxim/openproject/labels{/name}","releases_url":"https://api.github.com/repos/hirtie-maxim/openproject/releases{/id}","created_at":"2015-02-10T13:38:46Z","updated_at":"2015-04-17T08:23:21Z","pushed_at":"2015-04-28T13:08:12Z","git_url":"git://github.com/hirtie-maxim/openproject.git","ssh_url":"git@github.com:hirtie-maxim/openproject.git","clone_url":"https://github.com/hirtie-maxim/openproject.git","svn_url":"https://github.com/hirtie-maxim/openproject","homepage":"https://www.openproject.org","size":64839,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"opf:release/4.1","ref":"release/4.1","sha":"bcf5d5f6987b70c2b8c7c37d114c0ac64e8fe0e4","user":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?v=3","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"repo":{"id":6899875,"name":"openproject","full_name":"opf/openproject","owner":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?v=3","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opf/openproject","description":"OpenProject is a web-based project management system built on Ruby on Rails","fork":false,"url":"https://api.github.com/repos/opf/openproject","forks_url":"https://api.github.com/repos/opf/openproject/forks","keys_url":"https://api.github.com/repos/opf/openproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opf/openproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opf/openproject/teams","hooks_url":"https://api.github.com/repos/opf/openproject/hooks","issue_events_url":"https://api.github.com/repos/opf/openproject/issues/events{/number}","events_url":"https://api.github.com/repos/opf/openproject/events","assignees_url":"https://api.github.com/repos/opf/openproject/assignees{/user}","branches_url":"https://api.github.com/repos/opf/openproject/branches{/branch}","tags_url":"https://api.github.com/repos/opf/openproject/tags","blobs_url":"https://api.github.com/repos/opf/openproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opf/openproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opf/openproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/opf/openproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/{sha}","languages_url":"https://api.github.com/repos/opf/openproject/languages","stargazers_url":"https://api.github.com/repos/opf/openproject/stargazers","contributors_url":"https://api.github.com/repos/opf/openproject/contributors","subscribers_url":"https://api.github.com/repos/opf/openproject/subscribers","subscription_url":"https://api.github.com/repos/opf/openproject/subscription","commits_url":"https://api.github.com/repos/opf/openproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/opf/openproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/opf/openproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/opf/openproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/opf/openproject/contents/{+path}","compare_url":"https://api.github.com/repos/opf/openproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opf/openproject/merges","archive_url":"https://api.github.com/repos/opf/openproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opf/openproject/downloads","issues_url":"https://api.github.com/repos/opf/openproject/issues{/number}","pulls_url":"https://api.github.com/repos/opf/openproject/pulls{/number}","milestones_url":"https://api.github.com/repos/opf/openproject/milestones{/number}","notifications_url":"https://api.github.com/repos/opf/openproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opf/openproject/labels{/name}","releases_url":"https://api.github.com/repos/opf/openproject/releases{/id}","created_at":"2012-11-28T09:59:11Z","updated_at":"2015-04-28T15:02:10Z","pushed_at":"2015-04-28T15:02:10Z","git_url":"git://github.com/opf/openproject.git","ssh_url":"git@github.com:opf/openproject.git","clone_url":"https://github.com/opf/openproject.git","svn_url":"https://github.com/opf/openproject","homepage":"https://www.openproject.org","size":192462,"stargazers_count":594,"watchers_count":594,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":261,"mirror_url":null,"open_issues_count":55,"forks":261,"open_issues":55,"watchers":594,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/2900"},"html":{"href":"https://github.com/opf/openproject/pull/2900"},"issue":{"href":"https://api.github.com/repos/opf/openproject/issues/2900"},"comments":{"href":"https://api.github.com/repos/opf/openproject/issues/2900/comments"},"review_comments":{"href":"https://api.github.com/repos/opf/openproject/pulls/2900/comments"},"review_comment":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opf/openproject/pulls/2900/commits"},"statuses":{"href":"https://api.github.com/repos/opf/openproject/statuses/f09ebdaea76900577fb82e1a88f22df5e176165a"}}}}