{"action":"created","issue":{"url":"https://api.github.com/repos/bokmann/business_time/issues/101","labels_url":"https://api.github.com/repos/bokmann/business_time/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/bokmann/business_time/issues/101/comments","events_url":"https://api.github.com/repos/bokmann/business_time/issues/101/events","html_url":"https://github.com/bokmann/business_time/issues/101","id":53990240,"number":101,"title":"1.business_day.before(date) not working","user":{"login":"valk","id":58757,"avatar_url":"https://avatars.githubusercontent.com/u/58757?v=3","gravatar_id":"","url":"https://api.github.com/users/valk","html_url":"https://github.com/valk","followers_url":"https://api.github.com/users/valk/followers","following_url":"https://api.github.com/users/valk/following{/other_user}","gists_url":"https://api.github.com/users/valk/gists{/gist_id}","starred_url":"https://api.github.com/users/valk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valk/subscriptions","organizations_url":"https://api.github.com/users/valk/orgs","repos_url":"https://api.github.com/users/valk/repos","events_url":"https://api.github.com/users/valk/events{/privacy}","received_events_url":"https://api.github.com/users/valk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-11T12:19:40Z","updated_at":"2015-01-17T14:53:10Z","closed_at":null,"body":"Please consider the following:\r\n\r\n> date = '12-Jan-2015'.to_date\r\n=> Mon, 12 Jan 2015\r\n> 1.business_day.before(date)\r\n=> Fri, 09 Jan 2015 00:00:00 UTC +00:00\r\n\r\n> date = '11-Jan-2015'.to_date\r\n=> Sun, 11 Jan 2015\r\n> 1.business_day.before(date)\r\n=> Thu, 08 Jan 2015 00:00:00 UTC +00:00\r\n\r\nSame result if I set:\r\n\r\nBusinessTime::Config.work_week = %w[mon tue wed thu fri]\r\n\r\nIt looks like a bug or am I missing any relevant setting?\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/bokmann/business_time/issues/comments/70369709","html_url":"https://github.com/bokmann/business_time/issues/101#issuecomment-70369709","issue_url":"https://api.github.com/repos/bokmann/business_time/issues/101","id":70369709,"user":{"login":"mifix","id":8080,"avatar_url":"https://avatars.githubusercontent.com/u/8080?v=3","gravatar_id":"","url":"https://api.github.com/users/mifix","html_url":"https://github.com/mifix","followers_url":"https://api.github.com/users/mifix/followers","following_url":"https://api.github.com/users/mifix/following{/other_user}","gists_url":"https://api.github.com/users/mifix/gists{/gist_id}","starred_url":"https://api.github.com/users/mifix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mifix/subscriptions","organizations_url":"https://api.github.com/users/mifix/orgs","repos_url":"https://api.github.com/users/mifix/repos","events_url":"https://api.github.com/users/mifix/events{/privacy}","received_events_url":"https://api.github.com/users/mifix/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T14:53:10Z","updated_at":"2015-01-17T14:53:10Z","body":"I think I just found the explanation in issue #45.  Looks like this was intended this way from the beginning. "}}