{"action":"created","comment":{"url":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/comments/29680912","id":29680912,"diff_hunk":"@@ -0,0 +1,25 @@\n+var Promise = require(\"bluebird\");\n+\n+module.exports = function(field_type_datetime) {\n+\n+    field_type_datetime.prototype.isProperValue = function(datetime) {\n+        return new Promise(function(resolve, reject) {\n+            var parsed_datetime = parseInt(datetime);\n+\n+            var regex = /^(-[1-9]{1,11})$|^([0-9]|[1-9][0-9]*)$/; //granulation_per_timestamp","path":"define/field_type.datetime.js","position":9,"original_position":9,"commit_id":"e5f433dedb8e314b1b722ee9e53bb8a3860a5e75","original_commit_id":"e5f433dedb8e314b1b722ee9e53bb8a3860a5e75","user":{"login":"debian-sh","id":5663277,"avatar_url":"https://avatars.githubusercontent.com/u/5663277?v=3","gravatar_id":"","url":"https://api.github.com/users/debian-sh","html_url":"https://github.com/debian-sh","followers_url":"https://api.github.com/users/debian-sh/followers","following_url":"https://api.github.com/users/debian-sh/following{/other_user}","gists_url":"https://api.github.com/users/debian-sh/gists{/gist_id}","starred_url":"https://api.github.com/users/debian-sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debian-sh/subscriptions","organizations_url":"https://api.github.com/users/debian-sh/orgs","repos_url":"https://api.github.com/users/debian-sh/repos","events_url":"https://api.github.com/users/debian-sh/events{/privacy}","received_events_url":"https://api.github.com/users/debian-sh/received_events","type":"User","site_admin":false},"body":"Ok wydajniej będzie ustalić dowolny timestamp i porównywać czy jest większy/równy od ustalonego. Pytanie jaki timestamp bierzemy pod uwagę? \r\n0r. 1 stycznia?\r\n-62167219200000\r\n\r\nczy 1970-01-01?","created_at":"2015-05-05T15:38:07Z","updated_at":"2015-05-05T15:38:07Z","html_url":"https://github.com/Sealious/sealious-base-chips/pull/23#discussion_r29680912","pull_request_url":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/comments/29680912"},"html":{"href":"https://github.com/Sealious/sealious-base-chips/pull/23#discussion_r29680912"},"pull_request":{"href":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/23","id":34714701,"html_url":"https://github.com/Sealious/sealious-base-chips/pull/23","diff_url":"https://github.com/Sealious/sealious-base-chips/pull/23.diff","patch_url":"https://github.com/Sealious/sealious-base-chips/pull/23.patch","issue_url":"https://api.github.com/repos/Sealious/sealious-base-chips/issues/23","number":23,"state":"open","locked":false,"title":"Issue#22 datetime","user":{"login":"debian-sh","id":5663277,"avatar_url":"https://avatars.githubusercontent.com/u/5663277?v=3","gravatar_id":"","url":"https://api.github.com/users/debian-sh","html_url":"https://github.com/debian-sh","followers_url":"https://api.github.com/users/debian-sh/followers","following_url":"https://api.github.com/users/debian-sh/following{/other_user}","gists_url":"https://api.github.com/users/debian-sh/gists{/gist_id}","starred_url":"https://api.github.com/users/debian-sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debian-sh/subscriptions","organizations_url":"https://api.github.com/users/debian-sh/orgs","repos_url":"https://api.github.com/users/debian-sh/repos","events_url":"https://api.github.com/users/debian-sh/events{/privacy}","received_events_url":"https://api.github.com/users/debian-sh/received_events","type":"User","site_admin":false},"body":"Testy dla field_type.datetime oraz field_type.date\r\nhttps://github.com/Sealious/sealious-example-app/tree/testing_field_type.datetime","created_at":"2015-05-05T11:15:27Z","updated_at":"2015-05-05T15:38:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a78c62099141942ad37513a69d0e6f2048eb658","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sealious/sealious-base-chips/issues/23/comments","statuses_url":"https://api.github.com/repos/Sealious/sealious-base-chips/statuses/e5f433dedb8e314b1b722ee9e53bb8a3860a5e75","head":{"label":"Sealious:issue#22_datetime","ref":"issue#22_datetime","sha":"e5f433dedb8e314b1b722ee9e53bb8a3860a5e75","user":{"login":"Sealious","id":11518171,"avatar_url":"https://avatars.githubusercontent.com/u/11518171?v=3","gravatar_id":"","url":"https://api.github.com/users/Sealious","html_url":"https://github.com/Sealious","followers_url":"https://api.github.com/users/Sealious/followers","following_url":"https://api.github.com/users/Sealious/following{/other_user}","gists_url":"https://api.github.com/users/Sealious/gists{/gist_id}","starred_url":"https://api.github.com/users/Sealious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sealious/subscriptions","organizations_url":"https://api.github.com/users/Sealious/orgs","repos_url":"https://api.github.com/users/Sealious/repos","events_url":"https://api.github.com/users/Sealious/events{/privacy}","received_events_url":"https://api.github.com/users/Sealious/received_events","type":"Organization","site_admin":false},"repo":{"id":32385333,"name":"sealious-base-chips","full_name":"Sealious/sealious-base-chips","owner":{"login":"Sealious","id":11518171,"avatar_url":"https://avatars.githubusercontent.com/u/11518171?v=3","gravatar_id":"","url":"https://api.github.com/users/Sealious","html_url":"https://github.com/Sealious","followers_url":"https://api.github.com/users/Sealious/followers","following_url":"https://api.github.com/users/Sealious/following{/other_user}","gists_url":"https://api.github.com/users/Sealious/gists{/gist_id}","starred_url":"https://api.github.com/users/Sealious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sealious/subscriptions","organizations_url":"https://api.github.com/users/Sealious/orgs","repos_url":"https://api.github.com/users/Sealious/repos","events_url":"https://api.github.com/users/Sealious/events{/privacy}","received_events_url":"https://api.github.com/users/Sealious/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sealious/sealious-base-chips","description":"Set of base chips for Sealious framework","fork":false,"url":"https://api.github.com/repos/Sealious/sealious-base-chips","forks_url":"https://api.github.com/repos/Sealious/sealious-base-chips/forks","keys_url":"https://api.github.com/repos/Sealious/sealious-base-chips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sealious/sealious-base-chips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sealious/sealious-base-chips/teams","hooks_url":"https://api.github.com/repos/Sealious/sealious-base-chips/hooks","issue_events_url":"https://api.github.com/repos/Sealious/sealious-base-chips/issues/events{/number}","events_url":"https://api.github.com/repos/Sealious/sealious-base-chips/events","assignees_url":"https://api.github.com/repos/Sealious/sealious-base-chips/assignees{/user}","branches_url":"https://api.github.com/repos/Sealious/sealious-base-chips/branches{/branch}","tags_url":"https://api.github.com/repos/Sealious/sealious-base-chips/tags","blobs_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sealious/sealious-base-chips/statuses/{sha}","languages_url":"https://api.github.com/repos/Sealious/sealious-base-chips/languages","stargazers_url":"https://api.github.com/repos/Sealious/sealious-base-chips/stargazers","contributors_url":"https://api.github.com/repos/Sealious/sealious-base-chips/contributors","subscribers_url":"https://api.github.com/repos/Sealious/sealious-base-chips/subscribers","subscription_url":"https://api.github.com/repos/Sealious/sealious-base-chips/subscription","commits_url":"https://api.github.com/repos/Sealious/sealious-base-chips/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sealious/sealious-base-chips/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sealious/sealious-base-chips/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sealious/sealious-base-chips/contents/{+path}","compare_url":"https://api.github.com/repos/Sealious/sealious-base-chips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sealious/sealious-base-chips/merges","archive_url":"https://api.github.com/repos/Sealious/sealious-base-chips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sealious/sealious-base-chips/downloads","issues_url":"https://api.github.com/repos/Sealious/sealious-base-chips/issues{/number}","pulls_url":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls{/number}","milestones_url":"https://api.github.com/repos/Sealious/sealious-base-chips/milestones{/number}","notifications_url":"https://api.github.com/repos/Sealious/sealious-base-chips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sealious/sealious-base-chips/labels{/name}","releases_url":"https://api.github.com/repos/Sealious/sealious-base-chips/releases{/id}","created_at":"2015-03-17T09:55:02Z","updated_at":"2015-05-05T15:16:49Z","pushed_at":"2015-05-05T15:16:49Z","git_url":"git://github.com/Sealious/sealious-base-chips.git","ssh_url":"git@github.com:Sealious/sealious-base-chips.git","clone_url":"https://github.com/Sealious/sealious-base-chips.git","svn_url":"https://github.com/Sealious/sealious-base-chips","homepage":"","size":1420,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"Sealious:master","ref":"master","sha":"7c0c8501cc1f8dfc3b65fc9503df049044a147d6","user":{"login":"Sealious","id":11518171,"avatar_url":"https://avatars.githubusercontent.com/u/11518171?v=3","gravatar_id":"","url":"https://api.github.com/users/Sealious","html_url":"https://github.com/Sealious","followers_url":"https://api.github.com/users/Sealious/followers","following_url":"https://api.github.com/users/Sealious/following{/other_user}","gists_url":"https://api.github.com/users/Sealious/gists{/gist_id}","starred_url":"https://api.github.com/users/Sealious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sealious/subscriptions","organizations_url":"https://api.github.com/users/Sealious/orgs","repos_url":"https://api.github.com/users/Sealious/repos","events_url":"https://api.github.com/users/Sealious/events{/privacy}","received_events_url":"https://api.github.com/users/Sealious/received_events","type":"Organization","site_admin":false},"repo":{"id":32385333,"name":"sealious-base-chips","full_name":"Sealious/sealious-base-chips","owner":{"login":"Sealious","id":11518171,"avatar_url":"https://avatars.githubusercontent.com/u/11518171?v=3","gravatar_id":"","url":"https://api.github.com/users/Sealious","html_url":"https://github.com/Sealious","followers_url":"https://api.github.com/users/Sealious/followers","following_url":"https://api.github.com/users/Sealious/following{/other_user}","gists_url":"https://api.github.com/users/Sealious/gists{/gist_id}","starred_url":"https://api.github.com/users/Sealious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sealious/subscriptions","organizations_url":"https://api.github.com/users/Sealious/orgs","repos_url":"https://api.github.com/users/Sealious/repos","events_url":"https://api.github.com/users/Sealious/events{/privacy}","received_events_url":"https://api.github.com/users/Sealious/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sealious/sealious-base-chips","description":"Set of base chips for Sealious framework","fork":false,"url":"https://api.github.com/repos/Sealious/sealious-base-chips","forks_url":"https://api.github.com/repos/Sealious/sealious-base-chips/forks","keys_url":"https://api.github.com/repos/Sealious/sealious-base-chips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sealious/sealious-base-chips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sealious/sealious-base-chips/teams","hooks_url":"https://api.github.com/repos/Sealious/sealious-base-chips/hooks","issue_events_url":"https://api.github.com/repos/Sealious/sealious-base-chips/issues/events{/number}","events_url":"https://api.github.com/repos/Sealious/sealious-base-chips/events","assignees_url":"https://api.github.com/repos/Sealious/sealious-base-chips/assignees{/user}","branches_url":"https://api.github.com/repos/Sealious/sealious-base-chips/branches{/branch}","tags_url":"https://api.github.com/repos/Sealious/sealious-base-chips/tags","blobs_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sealious/sealious-base-chips/statuses/{sha}","languages_url":"https://api.github.com/repos/Sealious/sealious-base-chips/languages","stargazers_url":"https://api.github.com/repos/Sealious/sealious-base-chips/stargazers","contributors_url":"https://api.github.com/repos/Sealious/sealious-base-chips/contributors","subscribers_url":"https://api.github.com/repos/Sealious/sealious-base-chips/subscribers","subscription_url":"https://api.github.com/repos/Sealious/sealious-base-chips/subscription","commits_url":"https://api.github.com/repos/Sealious/sealious-base-chips/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sealious/sealious-base-chips/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sealious/sealious-base-chips/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sealious/sealious-base-chips/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sealious/sealious-base-chips/contents/{+path}","compare_url":"https://api.github.com/repos/Sealious/sealious-base-chips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sealious/sealious-base-chips/merges","archive_url":"https://api.github.com/repos/Sealious/sealious-base-chips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sealious/sealious-base-chips/downloads","issues_url":"https://api.github.com/repos/Sealious/sealious-base-chips/issues{/number}","pulls_url":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls{/number}","milestones_url":"https://api.github.com/repos/Sealious/sealious-base-chips/milestones{/number}","notifications_url":"https://api.github.com/repos/Sealious/sealious-base-chips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sealious/sealious-base-chips/labels{/name}","releases_url":"https://api.github.com/repos/Sealious/sealious-base-chips/releases{/id}","created_at":"2015-03-17T09:55:02Z","updated_at":"2015-05-05T15:16:49Z","pushed_at":"2015-05-05T15:16:49Z","git_url":"git://github.com/Sealious/sealious-base-chips.git","ssh_url":"git@github.com:Sealious/sealious-base-chips.git","clone_url":"https://github.com/Sealious/sealious-base-chips.git","svn_url":"https://github.com/Sealious/sealious-base-chips","homepage":"","size":1420,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/23"},"html":{"href":"https://github.com/Sealious/sealious-base-chips/pull/23"},"issue":{"href":"https://api.github.com/repos/Sealious/sealious-base-chips/issues/23"},"comments":{"href":"https://api.github.com/repos/Sealious/sealious-base-chips/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sealious/sealious-base-chips/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Sealious/sealious-base-chips/statuses/e5f433dedb8e314b1b722ee9e53bb8a3860a5e75"}}}}