{"action":"created","comment":{"url":"https://api.github.com/repos/formio/ngFormio/pulls/comments/78833789","id":78833789,"diff_hunk":"@@ -19,6 +19,23 @@ module.exports = function(app) {\n             }\n           });\n \n+          if($scope.component.defaultValue.length === 0) $scope.component.defaultValue = new Date();\n+          else {\n+            var dateVal = new Date($scope.component.defaultValue);\n+\n+            if(isNaN(dateVal.getDate())) {\n+              try {\n+                var Moment = moment();","path":"src/components/datetime.js","position":10,"original_position":10,"commit_id":"900aaa48cec62c15439ad36a3d67fa37d8d5bfc3","original_commit_id":"900aaa48cec62c15439ad36a3d67fa37d8d5bfc3","user":{"login":"randallknutson","id":246735,"avatar_url":"https://avatars.githubusercontent.com/u/246735?v=3","gravatar_id":"","url":"https://api.github.com/users/randallknutson","html_url":"https://github.com/randallknutson","followers_url":"https://api.github.com/users/randallknutson/followers","following_url":"https://api.github.com/users/randallknutson/following{/other_user}","gists_url":"https://api.github.com/users/randallknutson/gists{/gist_id}","starred_url":"https://api.github.com/users/randallknutson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randallknutson/subscriptions","organizations_url":"https://api.github.com/users/randallknutson/orgs","repos_url":"https://api.github.com/users/randallknutson/repos","events_url":"https://api.github.com/users/randallknutson/events{/privacy}","received_events_url":"https://api.github.com/users/randallknutson/received_events","type":"User","site_admin":false},"body":"We should probably include moment as an angular dependency as angularMoment\r\nThen do var moment = angularMoment here so we don't instantiate it. By instantiating it we don't allow them to pass any arguments to moment().","created_at":"2016-09-14T20:32:42Z","updated_at":"2016-09-14T20:32:42Z","html_url":"https://github.com/formio/ngFormio/pull/209#discussion_r78833789","pull_request_url":"https://api.github.com/repos/formio/ngFormio/pulls/209","_links":{"self":{"href":"https://api.github.com/repos/formio/ngFormio/pulls/comments/78833789"},"html":{"href":"https://github.com/formio/ngFormio/pull/209#discussion_r78833789"},"pull_request":{"href":"https://api.github.com/repos/formio/ngFormio/pulls/209"}}},"pull_request":{"url":"https://api.github.com/repos/formio/ngFormio/pulls/209","id":85067518,"html_url":"https://github.com/formio/ngFormio/pull/209","diff_url":"https://github.com/formio/ngFormio/pull/209.diff","patch_url":"https://github.com/formio/ngFormio/pull/209.patch","issue_url":"https://api.github.com/repos/formio/ngFormio/issues/209","number":209,"state":"open","locked":false,"title":"Added Default Value","user":{"login":"nickkhall","id":11252769,"avatar_url":"https://avatars.githubusercontent.com/u/11252769?v=3","gravatar_id":"","url":"https://api.github.com/users/nickkhall","html_url":"https://github.com/nickkhall","followers_url":"https://api.github.com/users/nickkhall/followers","following_url":"https://api.github.com/users/nickkhall/following{/other_user}","gists_url":"https://api.github.com/users/nickkhall/gists{/gist_id}","starred_url":"https://api.github.com/users/nickkhall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickkhall/subscriptions","organizations_url":"https://api.github.com/users/nickkhall/orgs","repos_url":"https://api.github.com/users/nickkhall/repos","events_url":"https://api.github.com/users/nickkhall/events{/privacy}","received_events_url":"https://api.github.com/users/nickkhall/received_events","type":"User","site_admin":false},"body":"- Added Default Value to Date / Time component\r\n  - Added specific day functionality using Moment.js","created_at":"2016-09-13T15:11:05Z","updated_at":"2016-09-14T20:32:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1f42384ca37750407f97ef7318b62208b233fa0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/formio/ngFormio/pulls/209/commits","review_comments_url":"https://api.github.com/repos/formio/ngFormio/pulls/209/comments","review_comment_url":"https://api.github.com/repos/formio/ngFormio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/formio/ngFormio/issues/209/comments","statuses_url":"https://api.github.com/repos/formio/ngFormio/statuses/900aaa48cec62c15439ad36a3d67fa37d8d5bfc3","head":{"label":"formio:FOR-85-Default-Date-Value","ref":"FOR-85-Default-Date-Value","sha":"900aaa48cec62c15439ad36a3d67fa37d8d5bfc3","user":{"login":"formio","id":11790256,"avatar_url":"https://avatars.githubusercontent.com/u/11790256?v=3","gravatar_id":"","url":"https://api.github.com/users/formio","html_url":"https://github.com/formio","followers_url":"https://api.github.com/users/formio/followers","following_url":"https://api.github.com/users/formio/following{/other_user}","gists_url":"https://api.github.com/users/formio/gists{/gist_id}","starred_url":"https://api.github.com/users/formio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/formio/subscriptions","organizations_url":"https://api.github.com/users/formio/orgs","repos_url":"https://api.github.com/users/formio/repos","events_url":"https://api.github.com/users/formio/events{/privacy}","received_events_url":"https://api.github.com/users/formio/received_events","type":"Organization","site_admin":false},"repo":{"id":33407833,"name":"ngFormio","full_name":"formio/ngFormio","owner":{"login":"formio","id":11790256,"avatar_url":"https://avatars.githubusercontent.com/u/11790256?v=3","gravatar_id":"","url":"https://api.github.com/users/formio","html_url":"https://github.com/formio","followers_url":"https://api.github.com/users/formio/followers","following_url":"https://api.github.com/users/formio/following{/other_user}","gists_url":"https://api.github.com/users/formio/gists{/gist_id}","starred_url":"https://api.github.com/users/formio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/formio/subscriptions","organizations_url":"https://api.github.com/users/formio/orgs","repos_url":"https://api.github.com/users/formio/repos","events_url":"https://api.github.com/users/formio/events{/privacy}","received_events_url":"https://api.github.com/users/formio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/formio/ngFormio","description":"JSON powered form rendering library for Angular.js + Form.io.","fork":false,"url":"https://api.github.com/repos/formio/ngFormio","forks_url":"https://api.github.com/repos/formio/ngFormio/forks","keys_url":"https://api.github.com/repos/formio/ngFormio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/formio/ngFormio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/formio/ngFormio/teams","hooks_url":"https://api.github.com/repos/formio/ngFormio/hooks","issue_events_url":"https://api.github.com/repos/formio/ngFormio/issues/events{/number}","events_url":"https://api.github.com/repos/formio/ngFormio/events","assignees_url":"https://api.github.com/repos/formio/ngFormio/assignees{/user}","branches_url":"https://api.github.com/repos/formio/ngFormio/branches{/branch}","tags_url":"https://api.github.com/repos/formio/ngFormio/tags","blobs_url":"https://api.github.com/repos/formio/ngFormio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/formio/ngFormio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/formio/ngFormio/git/refs{/sha}","trees_url":"https://api.github.com/repos/formio/ngFormio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/formio/ngFormio/statuses/{sha}","languages_url":"https://api.github.com/repos/formio/ngFormio/languages","stargazers_url":"https://api.github.com/repos/formio/ngFormio/stargazers","contributors_url":"https://api.github.com/repos/formio/ngFormio/contributors","subscribers_url":"https://api.github.com/repos/formio/ngFormio/subscribers","subscription_url":"https://api.github.com/repos/formio/ngFormio/subscription","commits_url":"https://api.github.com/repos/formio/ngFormio/commits{/sha}","git_commits_url":"https://api.github.com/repos/formio/ngFormio/git/commits{/sha}","comments_url":"https://api.github.com/repos/formio/ngFormio/comments{/number}","issue_comment_url":"https://api.github.com/repos/formio/ngFormio/issues/comments{/number}","contents_url":"https://api.github.com/repos/formio/ngFormio/contents/{+path}","compare_url":"https://api.github.com/repos/formio/ngFormio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/formio/ngFormio/merges","archive_url":"https://api.github.com/repos/formio/ngFormio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/formio/ngFormio/downloads","issues_url":"https://api.github.com/repos/formio/ngFormio/issues{/number}","pulls_url":"https://api.github.com/repos/formio/ngFormio/pulls{/number}","milestones_url":"https://api.github.com/repos/formio/ngFormio/milestones{/number}","notifications_url":"https://api.github.com/repos/formio/ngFormio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/formio/ngFormio/labels{/name}","releases_url":"https://api.github.com/repos/formio/ngFormio/releases{/id}","deployments_url":"https://api.github.com/repos/formio/ngFormio/deployments","created_at":"2015-04-04T14:17:27Z","updated_at":"2016-08-06T10:32:54Z","pushed_at":"2016-09-14T19:35:15Z","git_url":"git://github.com/formio/ngFormio.git","ssh_url":"git@github.com:formio/ngFormio.git","clone_url":"https://github.com/formio/ngFormio.git","svn_url":"https://github.com/formio/ngFormio","homepage":"http://codepen.io/travist/full/xVyMjo/","size":22827,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":8,"forks":17,"open_issues":8,"watchers":20,"default_branch":"master"}},"base":{"label":"formio:master","ref":"master","sha":"23ab6e5f2fc6f36bfb717e8db9c01814a753c7e2","user":{"login":"formio","id":11790256,"avatar_url":"https://avatars.githubusercontent.com/u/11790256?v=3","gravatar_id":"","url":"https://api.github.com/users/formio","html_url":"https://github.com/formio","followers_url":"https://api.github.com/users/formio/followers","following_url":"https://api.github.com/users/formio/following{/other_user}","gists_url":"https://api.github.com/users/formio/gists{/gist_id}","starred_url":"https://api.github.com/users/formio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/formio/subscriptions","organizations_url":"https://api.github.com/users/formio/orgs","repos_url":"https://api.github.com/users/formio/repos","events_url":"https://api.github.com/users/formio/events{/privacy}","received_events_url":"https://api.github.com/users/formio/received_events","type":"Organization","site_admin":false},"repo":{"id":33407833,"name":"ngFormio","full_name":"formio/ngFormio","owner":{"login":"formio","id":11790256,"avatar_url":"https://avatars.githubusercontent.com/u/11790256?v=3","gravatar_id":"","url":"https://api.github.com/users/formio","html_url":"https://github.com/formio","followers_url":"https://api.github.com/users/formio/followers","following_url":"https://api.github.com/users/formio/following{/other_user}","gists_url":"https://api.github.com/users/formio/gists{/gist_id}","starred_url":"https://api.github.com/users/formio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/formio/subscriptions","organizations_url":"https://api.github.com/users/formio/orgs","repos_url":"https://api.github.com/users/formio/repos","events_url":"https://api.github.com/users/formio/events{/privacy}","received_events_url":"https://api.github.com/users/formio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/formio/ngFormio","description":"JSON powered form rendering library for Angular.js + Form.io.","fork":false,"url":"https://api.github.com/repos/formio/ngFormio","forks_url":"https://api.github.com/repos/formio/ngFormio/forks","keys_url":"https://api.github.com/repos/formio/ngFormio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/formio/ngFormio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/formio/ngFormio/teams","hooks_url":"https://api.github.com/repos/formio/ngFormio/hooks","issue_events_url":"https://api.github.com/repos/formio/ngFormio/issues/events{/number}","events_url":"https://api.github.com/repos/formio/ngFormio/events","assignees_url":"https://api.github.com/repos/formio/ngFormio/assignees{/user}","branches_url":"https://api.github.com/repos/formio/ngFormio/branches{/branch}","tags_url":"https://api.github.com/repos/formio/ngFormio/tags","blobs_url":"https://api.github.com/repos/formio/ngFormio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/formio/ngFormio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/formio/ngFormio/git/refs{/sha}","trees_url":"https://api.github.com/repos/formio/ngFormio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/formio/ngFormio/statuses/{sha}","languages_url":"https://api.github.com/repos/formio/ngFormio/languages","stargazers_url":"https://api.github.com/repos/formio/ngFormio/stargazers","contributors_url":"https://api.github.com/repos/formio/ngFormio/contributors","subscribers_url":"https://api.github.com/repos/formio/ngFormio/subscribers","subscription_url":"https://api.github.com/repos/formio/ngFormio/subscription","commits_url":"https://api.github.com/repos/formio/ngFormio/commits{/sha}","git_commits_url":"https://api.github.com/repos/formio/ngFormio/git/commits{/sha}","comments_url":"https://api.github.com/repos/formio/ngFormio/comments{/number}","issue_comment_url":"https://api.github.com/repos/formio/ngFormio/issues/comments{/number}","contents_url":"https://api.github.com/repos/formio/ngFormio/contents/{+path}","compare_url":"https://api.github.com/repos/formio/ngFormio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/formio/ngFormio/merges","archive_url":"https://api.github.com/repos/formio/ngFormio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/formio/ngFormio/downloads","issues_url":"https://api.github.com/repos/formio/ngFormio/issues{/number}","pulls_url":"https://api.github.com/repos/formio/ngFormio/pulls{/number}","milestones_url":"https://api.github.com/repos/formio/ngFormio/milestones{/number}","notifications_url":"https://api.github.com/repos/formio/ngFormio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/formio/ngFormio/labels{/name}","releases_url":"https://api.github.com/repos/formio/ngFormio/releases{/id}","deployments_url":"https://api.github.com/repos/formio/ngFormio/deployments","created_at":"2015-04-04T14:17:27Z","updated_at":"2016-08-06T10:32:54Z","pushed_at":"2016-09-14T19:35:15Z","git_url":"git://github.com/formio/ngFormio.git","ssh_url":"git@github.com:formio/ngFormio.git","clone_url":"https://github.com/formio/ngFormio.git","svn_url":"https://github.com/formio/ngFormio","homepage":"http://codepen.io/travist/full/xVyMjo/","size":22827,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":8,"forks":17,"open_issues":8,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/formio/ngFormio/pulls/209"},"html":{"href":"https://github.com/formio/ngFormio/pull/209"},"issue":{"href":"https://api.github.com/repos/formio/ngFormio/issues/209"},"comments":{"href":"https://api.github.com/repos/formio/ngFormio/issues/209/comments"},"review_comments":{"href":"https://api.github.com/repos/formio/ngFormio/pulls/209/comments"},"review_comment":{"href":"https://api.github.com/repos/formio/ngFormio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/formio/ngFormio/pulls/209/commits"},"statuses":{"href":"https://api.github.com/repos/formio/ngFormio/statuses/900aaa48cec62c15439ad36a3d67fa37d8d5bfc3"}}}}
{"actor":{"display_login":"randallknutson"}}