{"action":"created","issue":{"url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/81","repository_url":"https://api.github.com/repos/intljusticemission/react-big-calendar","labels_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/81/comments","events_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/81/events","html_url":"https://github.com/intljusticemission/react-big-calendar/pull/81","id":147910714,"number":81,"title":"Fix first day of the week evaluation when using Globalize","user":{"login":"harel","id":985978,"avatar_url":"https://avatars.githubusercontent.com/u/985978?v=3","gravatar_id":"","url":"https://api.github.com/users/harel","html_url":"https://github.com/harel","followers_url":"https://api.github.com/users/harel/followers","following_url":"https://api.github.com/users/harel/following{/other_user}","gists_url":"https://api.github.com/users/harel/gists{/gist_id}","starred_url":"https://api.github.com/users/harel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harel/subscriptions","organizations_url":"https://api.github.com/users/harel/orgs","repos_url":"https://api.github.com/users/harel/repos","events_url":"https://api.github.com/users/harel/events{/privacy}","received_events_url":"https://api.github.com/users/harel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-13T00:22:53Z","updated_at":"2016-04-13T01:17:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/intljusticemission/react-big-calendar/pulls/81","html_url":"https://github.com/intljusticemission/react-big-calendar/pull/81","diff_url":"https://github.com/intljusticemission/react-big-calendar/pull/81.diff","patch_url":"https://github.com/intljusticemission/react-big-calendar/pull/81.patch"},"body":"This PR resolves issue #78  where the evaluation of first day of the week fails on every Sunday (for en-GB locale at least). On Sundays the first day of the week was evaluated as Saturday instead of Monday. \r\nThe PR is an update to the ```firstOfWeek``` function in ```src/localizers/globalize.js``` and it uses the CLDR supplemental data to correctly retrieve the first day of the week. Failing to use this method, there is a fallback to using the original Math based approach to determine the first day. \r\n\r\nAnother change is an update to packages.json file, which removes the ```files``` key. The problem with that was that having files there, meant any ```npm install``` from github resulted in JUST those files listed, and none of the src files. Apparently this is a common problem (also exists in projects like react-router etc.). "},"comment":{"url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/comments/209174251","html_url":"https://github.com/intljusticemission/react-big-calendar/pull/81#issuecomment-209174251","issue_url":"https://api.github.com/repos/intljusticemission/react-big-calendar/issues/81","id":209174251,"user":{"login":"jquense","id":339286,"avatar_url":"https://avatars.githubusercontent.com/u/339286?v=3","gravatar_id":"","url":"https://api.github.com/users/jquense","html_url":"https://github.com/jquense","followers_url":"https://api.github.com/users/jquense/followers","following_url":"https://api.github.com/users/jquense/following{/other_user}","gists_url":"https://api.github.com/users/jquense/gists{/gist_id}","starred_url":"https://api.github.com/users/jquense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquense/subscriptions","organizations_url":"https://api.github.com/users/jquense/orgs","repos_url":"https://api.github.com/users/jquense/repos","events_url":"https://api.github.com/users/jquense/events{/privacy}","received_events_url":"https://api.github.com/users/jquense/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T01:17:59Z","updated_at":"2016-04-13T01:17:59Z","body":"invariant will throw a hard error, where warning will only warn... I think in this case we want to warn not throw? "}}