{"action":"closed","issue":{"url":"https://api.github.com/repos/robfig/cron/issues/55","repository_url":"https://api.github.com/repos/robfig/cron","labels_url":"https://api.github.com/repos/robfig/cron/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/robfig/cron/issues/55/comments","events_url":"https://api.github.com/repos/robfig/cron/issues/55/events","html_url":"https://github.com/robfig/cron/issues/55","id":145096247,"number":55,"title":"Using Asia/Kolkata(+0530) timezone cause schedule inaccuracy","user":{"login":"Jack-Ji","id":1416077,"avatar_url":"https://avatars.githubusercontent.com/u/1416077?v=3","gravatar_id":"","url":"https://api.github.com/users/Jack-Ji","html_url":"https://github.com/Jack-Ji","followers_url":"https://api.github.com/users/Jack-Ji/followers","following_url":"https://api.github.com/users/Jack-Ji/following{/other_user}","gists_url":"https://api.github.com/users/Jack-Ji/gists{/gist_id}","starred_url":"https://api.github.com/users/Jack-Ji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jack-Ji/subscriptions","organizations_url":"https://api.github.com/users/Jack-Ji/orgs","repos_url":"https://api.github.com/users/Jack-Ji/repos","events_url":"https://api.github.com/users/Jack-Ji/events{/privacy}","received_events_url":"https://api.github.com/users/Jack-Ji/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-01T06:13:01Z","updated_at":"2016-08-09T13:37:35Z","closed_at":"2016-08-09T13:37:35Z","body":"**Example Code:**\r\n\r\n```\r\nfunc main() {\r\n\tschedule, _ := cron.Parse(\"0 0 12 * * ?\")\r\n\tfmt.Printf(\"%s\\n\", time.Now())\r\n\tfmt.Printf(\"%s\\n\", schedule.Next(time.Now()))\r\n}\r\n\r\nOutput:\r\n2016-04-01 11:09:16.342426894 +0530 IST\r\n2016-04-02 12:00:00 +0530 IST\r\n```\r\n\r\nAfter examination of spec.go, I think the problem was caused by usage of\r\ntime.Truncate in SpecSchedule's method Next, which should use time.Date\r\ninstead to round up hours/minutes/seconds.\r\n\r\nAny other ideas?\r\n"}}
{"actor":{"display_login":"robfig"}}