{"action":"created","issue":{"url":"https://api.github.com/repos/workshopper/learnyounode/issues/335","labels_url":"https://api.github.com/repos/workshopper/learnyounode/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/workshopper/learnyounode/issues/335/comments","events_url":"https://api.github.com/repos/workshopper/learnyounode/issues/335/events","html_url":"https://github.com/workshopper/learnyounode/issues/335","id":97250515,"number":335,"title":"Time Server exercise submission fail","user":{"login":"noscripter","id":1673877,"avatar_url":"https://avatars.githubusercontent.com/u/1673877?v=3","gravatar_id":"","url":"https://api.github.com/users/noscripter","html_url":"https://github.com/noscripter","followers_url":"https://api.github.com/users/noscripter/followers","following_url":"https://api.github.com/users/noscripter/following{/other_user}","gists_url":"https://api.github.com/users/noscripter/gists{/gist_id}","starred_url":"https://api.github.com/users/noscripter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noscripter/subscriptions","organizations_url":"https://api.github.com/users/noscripter/orgs","repos_url":"https://api.github.com/users/noscripter/repos","events_url":"https://api.github.com/users/noscripter/events{/privacy}","received_events_url":"https://api.github.com/users/noscripter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-25T19:48:09Z","updated_at":"2015-07-26T03:26:25Z","closed_at":null,"body":"My program is as follows:\r\n\r\n```javascript\r\nvar net = require('net');\r\n\r\nnet.createServer(function(socket) {\r\n    var date = new Date();\r\n    var year = date.getFullYear();\r\n    var month = date.getMonth() > 10;\r\n    month = month > 10 ? month : '0' + month;\r\n    var hour = date.getHours();\r\n    hour = hour > 10 ? hour : '0' + hour;\r\n    var minutes = date.getMinutes();\r\n    minutes = minutes > 10 ? minutes : '0' + minutes;\r\n    var result = year + '-' + date + '-' + ' ' + hour + ':' + minutes + '\\n';\r\n    socket.end(result);\r\n}).listen(8000);;\r\n```\r\n\r\nWondering why it failed?"},"comment":{"url":"https://api.github.com/repos/workshopper/learnyounode/issues/comments/124936684","html_url":"https://github.com/workshopper/learnyounode/issues/335#issuecomment-124936684","issue_url":"https://api.github.com/repos/workshopper/learnyounode/issues/335","id":124936684,"user":{"login":"Chrinkus","id":11565931,"avatar_url":"https://avatars.githubusercontent.com/u/11565931?v=3","gravatar_id":"","url":"https://api.github.com/users/Chrinkus","html_url":"https://github.com/Chrinkus","followers_url":"https://api.github.com/users/Chrinkus/followers","following_url":"https://api.github.com/users/Chrinkus/following{/other_user}","gists_url":"https://api.github.com/users/Chrinkus/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrinkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrinkus/subscriptions","organizations_url":"https://api.github.com/users/Chrinkus/orgs","repos_url":"https://api.github.com/users/Chrinkus/repos","events_url":"https://api.github.com/users/Chrinkus/events{/privacy}","received_events_url":"https://api.github.com/users/Chrinkus/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T03:26:25Z","updated_at":"2015-07-26T03:26:25Z","body":"What error messages are you getting?\r\nIt may have failed due to listening to 8000 instead of process.argv[2]."}}