{"action":"created","issue":{"url":"https://api.github.com/repos/cvut/sirius/issues/174","labels_url":"https://api.github.com/repos/cvut/sirius/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/cvut/sirius/issues/174/comments","events_url":"https://api.github.com/repos/cvut/sirius/issues/174/events","html_url":"https://github.com/cvut/sirius/issues/174","id":123190889,"number":174,"title":"Change Day to 0–6 (Sunday is 0) – to avoid confusion when using Date#wday ?","user":{"login":"jirutka","id":949228,"avatar_url":"https://avatars.githubusercontent.com/u/949228?v=3","gravatar_id":"","url":"https://api.github.com/users/jirutka","html_url":"https://github.com/jirutka","followers_url":"https://api.github.com/users/jirutka/followers","following_url":"https://api.github.com/users/jirutka/following{/other_user}","gists_url":"https://api.github.com/users/jirutka/gists{/gist_id}","starred_url":"https://api.github.com/users/jirutka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirutka/subscriptions","organizations_url":"https://api.github.com/users/jirutka/orgs","repos_url":"https://api.github.com/users/jirutka/repos","events_url":"https://api.github.com/users/jirutka/events{/privacy}","received_events_url":"https://api.github.com/users/jirutka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cvut/sirius/labels/discussion","name":"discussion","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"flexik","id":1473583,"avatar_url":"https://avatars.githubusercontent.com/u/1473583?v=3","gravatar_id":"","url":"https://api.github.com/users/flexik","html_url":"https://github.com/flexik","followers_url":"https://api.github.com/users/flexik/followers","following_url":"https://api.github.com/users/flexik/following{/other_user}","gists_url":"https://api.github.com/users/flexik/gists{/gist_id}","starred_url":"https://api.github.com/users/flexik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flexik/subscriptions","organizations_url":"https://api.github.com/users/flexik/orgs","repos_url":"https://api.github.com/users/flexik/repos","events_url":"https://api.github.com/users/flexik/events{/privacy}","received_events_url":"https://api.github.com/users/flexik/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-12-20T23:57:36Z","updated_at":"2015-12-21T00:20:33Z","closed_at":null,"body":"Ruby uses 0–6 for Sunday–Saturday in [Date#wday](http://ruby-doc.org/stdlib-2.2.4/libdoc/date/rdoc/Date.html#method-i-wday), but we use 1–7 for Monday–Sunday in [Day](https://github.com/cvut/sirius/blob/3681b30c5151f2912018873e9f334b3e9f6dfd6d/lib/day.rb).\r\n\r\nI understand this decision, the Ruby’s way is very unnatural for us. However, we still use Ruby’s Date and this difference in numbering brings huge confusion and leads to needless errors. I did it wrong in #173 and I think that @flexik introduced bug in [5ad56ff](https://github.com/cvut/sirius/commit/5ad56ffc718d3c62467c19f0fc102424d8fe189a#commitcomment-15087688)."},"comment":{"url":"https://api.github.com/repos/cvut/sirius/issues/comments/166167370","html_url":"https://github.com/cvut/sirius/issues/174#issuecomment-166167370","issue_url":"https://api.github.com/repos/cvut/sirius/issues/174","id":166167370,"user":{"login":"jirutka","id":949228,"avatar_url":"https://avatars.githubusercontent.com/u/949228?v=3","gravatar_id":"","url":"https://api.github.com/users/jirutka","html_url":"https://github.com/jirutka","followers_url":"https://api.github.com/users/jirutka/followers","following_url":"https://api.github.com/users/jirutka/following{/other_user}","gists_url":"https://api.github.com/users/jirutka/gists{/gist_id}","starred_url":"https://api.github.com/users/jirutka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirutka/subscriptions","organizations_url":"https://api.github.com/users/jirutka/orgs","repos_url":"https://api.github.com/users/jirutka/repos","events_url":"https://api.github.com/users/jirutka/events{/privacy}","received_events_url":"https://api.github.com/users/jirutka/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T00:20:33Z","updated_at":"2015-12-21T00:20:33Z","body":"Huh, Ruby’s Date has two methods that returns number of a week’s day. The second one is [Date#cwday](http://ruby-doc.org/stdlib-2.2.4/libdoc/date/rdoc/Date.html#method-i-cwday) that behaves as we want."}}