{"action":"created","comment":{"url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/comments/31856766","id":31856766,"diff_hunk":"@@ -1 +1,57 @@\n-// export this as a Node module using the enhancedDate.js code from Module_2\n\\ No newline at end of file\n+// export this as a Node module using the enhancedDate.js code from Module_2\n+\n+var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n+var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n+\n+var myDate = null;\n+var dateIsSet = false;\n+\n+function setDate(date) {\n+    if (date instanceof Date || typeof date === 'number') {\n+        myDate = new Date(date)\n+    } else {\n+        myDate = new Date();\n+    }\n+}\n+\n+function getDate(returnObj) {\n+    if (!dateIsSet) {\n+        setDate();\n+    }\n+    if (returnObj) {\n+        return myDate;\n+    } else {\n+        return myDate.getTime();\n+    }\n+}\n+\n+function getDayName() {\n+    return dayNames[myDate.getDay()];\n+}\n+\n+function getMonthName() {\n+    return monthNames[myDate.getMonth()];\n+}\n+\n+function isToday() {\n+    var today = new Date;\n+    if (today.getMonth === myDate.getMonth() && today.getYear === myDate.getYear && today.getDate === myDate.getDate()) {\n+        return = true; \n+    } else {\n+        return false;\n+    }\n+}\n+\n+function is Future() {","path":"server/enhancedDate.js","position":47,"original_position":47,"commit_id":"17f5926e8ce09a4aae85b9322ac318fcee27f995","original_commit_id":"17f5926e8ce09a4aae85b9322ac318fcee27f995","user":{"login":"jamdon","id":10747092,"avatar_url":"https://avatars.githubusercontent.com/u/10747092?v=3","gravatar_id":"","url":"https://api.github.com/users/jamdon","html_url":"https://github.com/jamdon","followers_url":"https://api.github.com/users/jamdon/followers","following_url":"https://api.github.com/users/jamdon/following{/other_user}","gists_url":"https://api.github.com/users/jamdon/gists{/gist_id}","starred_url":"https://api.github.com/users/jamdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamdon/subscriptions","organizations_url":"https://api.github.com/users/jamdon/orgs","repos_url":"https://api.github.com/users/jamdon/repos","events_url":"https://api.github.com/users/jamdon/events{/privacy}","received_events_url":"https://api.github.com/users/jamdon/received_events","type":"User","site_admin":false},"body":"Can't have a space between is and Future here.","created_at":"2015-06-05T22:22:34Z","updated_at":"2015-06-05T22:22:34Z","html_url":"https://github.com/JSCRIPT300-Spring2015/Module_3/pull/28#discussion_r31856766","pull_request_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/comments/31856766"},"html":{"href":"https://github.com/JSCRIPT300-Spring2015/Module_3/pull/28#discussion_r31856766"},"pull_request":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/28","id":37073682,"html_url":"https://github.com/JSCRIPT300-Spring2015/Module_3/pull/28","diff_url":"https://github.com/JSCRIPT300-Spring2015/Module_3/pull/28.diff","patch_url":"https://github.com/JSCRIPT300-Spring2015/Module_3/pull/28.patch","issue_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/issues/28","number":28,"state":"open","locked":false,"title":"Module 03 - HTTP Food Trucks Server","user":{"login":"surface2air","id":4358732,"avatar_url":"https://avatars.githubusercontent.com/u/4358732?v=3","gravatar_id":"","url":"https://api.github.com/users/surface2air","html_url":"https://github.com/surface2air","followers_url":"https://api.github.com/users/surface2air/followers","following_url":"https://api.github.com/users/surface2air/following{/other_user}","gists_url":"https://api.github.com/users/surface2air/gists{/gist_id}","starred_url":"https://api.github.com/users/surface2air/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surface2air/subscriptions","organizations_url":"https://api.github.com/users/surface2air/orgs","repos_url":"https://api.github.com/users/surface2air/repos","events_url":"https://api.github.com/users/surface2air/events{/privacy}","received_events_url":"https://api.github.com/users/surface2air/received_events","type":"User","site_admin":false},"body":"Committing changes and updates to files (fingers-crossed, this will go\r\nfrom local to remote at Github!)","created_at":"2015-06-05T21:55:11Z","updated_at":"2015-06-05T22:22:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2691561cc8add178116b377c6911a2fa03ed48f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/28/commits","review_comments_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/28/comments","review_comment_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/issues/28/comments","statuses_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/statuses/17f5926e8ce09a4aae85b9322ac318fcee27f995","head":{"label":"surface2air:master","ref":"master","sha":"17f5926e8ce09a4aae85b9322ac318fcee27f995","user":{"login":"surface2air","id":4358732,"avatar_url":"https://avatars.githubusercontent.com/u/4358732?v=3","gravatar_id":"","url":"https://api.github.com/users/surface2air","html_url":"https://github.com/surface2air","followers_url":"https://api.github.com/users/surface2air/followers","following_url":"https://api.github.com/users/surface2air/following{/other_user}","gists_url":"https://api.github.com/users/surface2air/gists{/gist_id}","starred_url":"https://api.github.com/users/surface2air/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surface2air/subscriptions","organizations_url":"https://api.github.com/users/surface2air/orgs","repos_url":"https://api.github.com/users/surface2air/repos","events_url":"https://api.github.com/users/surface2air/events{/privacy}","received_events_url":"https://api.github.com/users/surface2air/received_events","type":"User","site_admin":false},"repo":{"id":34869103,"name":"Module_3","full_name":"surface2air/Module_3","owner":{"login":"surface2air","id":4358732,"avatar_url":"https://avatars.githubusercontent.com/u/4358732?v=3","gravatar_id":"","url":"https://api.github.com/users/surface2air","html_url":"https://github.com/surface2air","followers_url":"https://api.github.com/users/surface2air/followers","following_url":"https://api.github.com/users/surface2air/following{/other_user}","gists_url":"https://api.github.com/users/surface2air/gists{/gist_id}","starred_url":"https://api.github.com/users/surface2air/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surface2air/subscriptions","organizations_url":"https://api.github.com/users/surface2air/orgs","repos_url":"https://api.github.com/users/surface2air/repos","events_url":"https://api.github.com/users/surface2air/events{/privacy}","received_events_url":"https://api.github.com/users/surface2air/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/surface2air/Module_3","description":"","fork":true,"url":"https://api.github.com/repos/surface2air/Module_3","forks_url":"https://api.github.com/repos/surface2air/Module_3/forks","keys_url":"https://api.github.com/repos/surface2air/Module_3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/surface2air/Module_3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/surface2air/Module_3/teams","hooks_url":"https://api.github.com/repos/surface2air/Module_3/hooks","issue_events_url":"https://api.github.com/repos/surface2air/Module_3/issues/events{/number}","events_url":"https://api.github.com/repos/surface2air/Module_3/events","assignees_url":"https://api.github.com/repos/surface2air/Module_3/assignees{/user}","branches_url":"https://api.github.com/repos/surface2air/Module_3/branches{/branch}","tags_url":"https://api.github.com/repos/surface2air/Module_3/tags","blobs_url":"https://api.github.com/repos/surface2air/Module_3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/surface2air/Module_3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/surface2air/Module_3/git/refs{/sha}","trees_url":"https://api.github.com/repos/surface2air/Module_3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/surface2air/Module_3/statuses/{sha}","languages_url":"https://api.github.com/repos/surface2air/Module_3/languages","stargazers_url":"https://api.github.com/repos/surface2air/Module_3/stargazers","contributors_url":"https://api.github.com/repos/surface2air/Module_3/contributors","subscribers_url":"https://api.github.com/repos/surface2air/Module_3/subscribers","subscription_url":"https://api.github.com/repos/surface2air/Module_3/subscription","commits_url":"https://api.github.com/repos/surface2air/Module_3/commits{/sha}","git_commits_url":"https://api.github.com/repos/surface2air/Module_3/git/commits{/sha}","comments_url":"https://api.github.com/repos/surface2air/Module_3/comments{/number}","issue_comment_url":"https://api.github.com/repos/surface2air/Module_3/issues/comments{/number}","contents_url":"https://api.github.com/repos/surface2air/Module_3/contents/{+path}","compare_url":"https://api.github.com/repos/surface2air/Module_3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/surface2air/Module_3/merges","archive_url":"https://api.github.com/repos/surface2air/Module_3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/surface2air/Module_3/downloads","issues_url":"https://api.github.com/repos/surface2air/Module_3/issues{/number}","pulls_url":"https://api.github.com/repos/surface2air/Module_3/pulls{/number}","milestones_url":"https://api.github.com/repos/surface2air/Module_3/milestones{/number}","notifications_url":"https://api.github.com/repos/surface2air/Module_3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/surface2air/Module_3/labels{/name}","releases_url":"https://api.github.com/repos/surface2air/Module_3/releases{/id}","created_at":"2015-04-30T18:09:06Z","updated_at":"2015-06-05T21:11:52Z","pushed_at":"2015-06-05T21:54:34Z","git_url":"git://github.com/surface2air/Module_3.git","ssh_url":"git@github.com:surface2air/Module_3.git","clone_url":"https://github.com/surface2air/Module_3.git","svn_url":"https://github.com/surface2air/Module_3","homepage":null,"size":1521,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"JSCRIPT300-Spring2015:master","ref":"master","sha":"12bfb3a735dc3275fb92d4f49c46b0a2ebb15832","user":{"login":"JSCRIPT300-Spring2015","id":11728112,"avatar_url":"https://avatars.githubusercontent.com/u/11728112?v=3","gravatar_id":"","url":"https://api.github.com/users/JSCRIPT300-Spring2015","html_url":"https://github.com/JSCRIPT300-Spring2015","followers_url":"https://api.github.com/users/JSCRIPT300-Spring2015/followers","following_url":"https://api.github.com/users/JSCRIPT300-Spring2015/following{/other_user}","gists_url":"https://api.github.com/users/JSCRIPT300-Spring2015/gists{/gist_id}","starred_url":"https://api.github.com/users/JSCRIPT300-Spring2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSCRIPT300-Spring2015/subscriptions","organizations_url":"https://api.github.com/users/JSCRIPT300-Spring2015/orgs","repos_url":"https://api.github.com/users/JSCRIPT300-Spring2015/repos","events_url":"https://api.github.com/users/JSCRIPT300-Spring2015/events{/privacy}","received_events_url":"https://api.github.com/users/JSCRIPT300-Spring2015/received_events","type":"Organization","site_admin":false},"repo":{"id":33980171,"name":"Module_3","full_name":"JSCRIPT300-Spring2015/Module_3","owner":{"login":"JSCRIPT300-Spring2015","id":11728112,"avatar_url":"https://avatars.githubusercontent.com/u/11728112?v=3","gravatar_id":"","url":"https://api.github.com/users/JSCRIPT300-Spring2015","html_url":"https://github.com/JSCRIPT300-Spring2015","followers_url":"https://api.github.com/users/JSCRIPT300-Spring2015/followers","following_url":"https://api.github.com/users/JSCRIPT300-Spring2015/following{/other_user}","gists_url":"https://api.github.com/users/JSCRIPT300-Spring2015/gists{/gist_id}","starred_url":"https://api.github.com/users/JSCRIPT300-Spring2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSCRIPT300-Spring2015/subscriptions","organizations_url":"https://api.github.com/users/JSCRIPT300-Spring2015/orgs","repos_url":"https://api.github.com/users/JSCRIPT300-Spring2015/repos","events_url":"https://api.github.com/users/JSCRIPT300-Spring2015/events{/privacy}","received_events_url":"https://api.github.com/users/JSCRIPT300-Spring2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JSCRIPT300-Spring2015/Module_3","description":"","fork":false,"url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3","forks_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/forks","keys_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/teams","hooks_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/hooks","issue_events_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/issues/events{/number}","events_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/events","assignees_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/assignees{/user}","branches_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/branches{/branch}","tags_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/tags","blobs_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/git/refs{/sha}","trees_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/statuses/{sha}","languages_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/languages","stargazers_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/stargazers","contributors_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/contributors","subscribers_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/subscribers","subscription_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/subscription","commits_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/commits{/sha}","git_commits_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/git/commits{/sha}","comments_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/comments{/number}","issue_comment_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/issues/comments{/number}","contents_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/contents/{+path}","compare_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/merges","archive_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/downloads","issues_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/issues{/number}","pulls_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls{/number}","milestones_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/milestones{/number}","notifications_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/labels{/name}","releases_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/releases{/id}","created_at":"2015-04-15T07:43:35Z","updated_at":"2015-04-30T18:08:48Z","pushed_at":"2015-06-05T21:55:11Z","git_url":"git://github.com/JSCRIPT300-Spring2015/Module_3.git","ssh_url":"git@github.com:JSCRIPT300-Spring2015/Module_3.git","clone_url":"https://github.com/JSCRIPT300-Spring2015/Module_3.git","svn_url":"https://github.com/JSCRIPT300-Spring2015/Module_3","homepage":null,"size":1802,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":1,"forks":25,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/28"},"html":{"href":"https://github.com/JSCRIPT300-Spring2015/Module_3/pull/28"},"issue":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/issues/28"},"comments":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_3/statuses/17f5926e8ce09a4aae85b9322ac318fcee27f995"}}}}