{"action":"created","issue":{"url":"https://api.github.com/repos/ncb000gt/node-cron/issues/209","repository_url":"https://api.github.com/repos/ncb000gt/node-cron","labels_url":"https://api.github.com/repos/ncb000gt/node-cron/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/ncb000gt/node-cron/issues/209/comments","events_url":"https://api.github.com/repos/ncb000gt/node-cron/issues/209/events","html_url":"https://github.com/ncb000gt/node-cron/issues/209","id":126958403,"number":209,"title":"Does not seem to be firing on the correct interval","user":{"login":"thisboyiscrazy","id":632284,"avatar_url":"https://avatars.githubusercontent.com/u/632284?v=3","gravatar_id":"","url":"https://api.github.com/users/thisboyiscrazy","html_url":"https://github.com/thisboyiscrazy","followers_url":"https://api.github.com/users/thisboyiscrazy/followers","following_url":"https://api.github.com/users/thisboyiscrazy/following{/other_user}","gists_url":"https://api.github.com/users/thisboyiscrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/thisboyiscrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thisboyiscrazy/subscriptions","organizations_url":"https://api.github.com/users/thisboyiscrazy/orgs","repos_url":"https://api.github.com/users/thisboyiscrazy/repos","events_url":"https://api.github.com/users/thisboyiscrazy/events{/privacy}","received_events_url":"https://api.github.com/users/thisboyiscrazy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-01-15T21:08:55Z","updated_at":"2016-10-07T01:58:10Z","closed_at":null,"body":"````\r\n\"use strict\"\r\n\r\nconst should = require('should');\r\nconst sinon = require('sinon');\r\n\r\nconst m60 = 60 * 60 * 1000;\r\n\r\nconst CronJob = require('cron').CronJob;\r\n\r\ndescribe('Cron',function () {\r\n\r\n  it('should fire every 60 min', function () {\r\n    let clock = sinon.useFakeTimers();\r\n    let l = []\r\n    let c = new CronJob('00 30 * * * *',function () {\r\n      l.push(Math.floor(Date.now() / 60000));\r\n    },null,true);\r\n\r\n    clock.tick(m60);\r\n    clock.tick(m60);\r\n    clock.tick(m60);\r\n    clock.tick(m60);\r\n    clock.tick(m60);\r\n\r\n    console.log(l);\r\n    l.length.should.equal(5);\r\n\r\n  });\r\n});\r\n````\r\n\r\nShould result in a array of 5 with values close to multiple of 30\r\n\r\nI get\r\n\r\n```\r\n  Cron\r\n[ 23, 47, 71, 95, 118, 142, 166, 190, 213, 237, 261, 285 ]\r\n    1) should fire every 60 min\r\n\r\n\r\n  0 passing (77ms)\r\n  1 failing\r\n\r\n  1) Cron should fire every 60 min:\r\n\r\n      AssertionError: expected 12 to be 5\r\n      + expected - actual\r\n\r\n      -12\r\n      +5\r\n      \r\n      at Assertion.fail (node_modules/should/lib/assertion.js:91:17)\r\n      at Assertion.Object.defineProperty.value (node_modules/should/lib/assertion.js:163:19)\r\n      at Context.<anonymous> (test/cron.js:26:21)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ncb000gt/node-cron/issues/comments/252135706","html_url":"https://github.com/ncb000gt/node-cron/issues/209#issuecomment-252135706","issue_url":"https://api.github.com/repos/ncb000gt/node-cron/issues/209","id":252135706,"user":{"login":"ncb000gt","id":62615,"avatar_url":"https://avatars.githubusercontent.com/u/62615?v=3","gravatar_id":"","url":"https://api.github.com/users/ncb000gt","html_url":"https://github.com/ncb000gt","followers_url":"https://api.github.com/users/ncb000gt/followers","following_url":"https://api.github.com/users/ncb000gt/following{/other_user}","gists_url":"https://api.github.com/users/ncb000gt/gists{/gist_id}","starred_url":"https://api.github.com/users/ncb000gt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncb000gt/subscriptions","organizations_url":"https://api.github.com/users/ncb000gt/orgs","repos_url":"https://api.github.com/users/ncb000gt/repos","events_url":"https://api.github.com/users/ncb000gt/events{/privacy}","received_events_url":"https://api.github.com/users/ncb000gt/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T01:58:10Z","updated_at":"2016-10-07T01:58:10Z","body":"@thisboyiscrazy i took your test and added it to the suite- thanks for that.\r\n\r\nHowever, I'm not seeing this locally. We'll see if travis catches anything as well...otherwise I'm not sure what would be causing the issue you are seeing.\r\n\r\n@hellerve That's just weird...that shouldn't happen, obviously. Could something have happened to the date on the system of the machine to have caused something like this to happen? Were you able to pinpoint a cause?"}}
{"actor":{"display_login":"ncb000gt"}}