{"action":"created","issue":{"url":"https://api.github.com/repos/RedHogs/cron-parser/issues/23","labels_url":"https://api.github.com/repos/RedHogs/cron-parser/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/RedHogs/cron-parser/issues/23/comments","events_url":"https://api.github.com/repos/RedHogs/cron-parser/issues/23/events","html_url":"https://github.com/RedHogs/cron-parser/issues/23","id":59688413,"number":23,"title":"Zero-based day of week not working correctly.","user":{"login":"KathyApplebaum","id":1859070,"avatar_url":"https://avatars.githubusercontent.com/u/1859070?v=3","gravatar_id":"","url":"https://api.github.com/users/KathyApplebaum","html_url":"https://github.com/KathyApplebaum","followers_url":"https://api.github.com/users/KathyApplebaum/followers","following_url":"https://api.github.com/users/KathyApplebaum/following{/other_user}","gists_url":"https://api.github.com/users/KathyApplebaum/gists{/gist_id}","starred_url":"https://api.github.com/users/KathyApplebaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KathyApplebaum/subscriptions","organizations_url":"https://api.github.com/users/KathyApplebaum/orgs","repos_url":"https://api.github.com/users/KathyApplebaum/repos","events_url":"https://api.github.com/users/KathyApplebaum/events{/privacy}","received_events_url":"https://api.github.com/users/KathyApplebaum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-03T19:01:21Z","updated_at":"2015-06-03T11:23:28Z","closed_at":null,"body":"In both 2.6 and 2.7, using 0 for Sunday gives an error, but using 7 for Sunday gives the expected output. Possibly a regression error, since I see support for 7 was added in 2.4.\r\n\r\nException in thread \"AWT-EventQueue-0\" org.joda.time.IllegalFieldValueException: Value 0 for dayOfWeek must be in the range [1,7]\r\n\tat org.joda.time.field.FieldUtils.verifyValueBounds(FieldUtils.java:215)\r\n\tat org.joda.time.field.PreciseDurationDateTimeField.set(PreciseDurationDateTimeField.java:78)\r\n\tat org.joda.time.chrono.ZonedChronology$ZonedDateTimeField.set(ZonedChronology.java:466)\r\n\tat org.joda.time.DateTime.withDayOfWeek(DateTime.java:1748)\r\n\tat net.redhogs.cronparser.DateAndTimeUtils.getDayOfWeekName(DateAndTimeUtils.java:47)\r\n\tat net.redhogs.cronparser.builder.DayOfWeekDescriptionBuilder.getSingleItemDescription(DayOfWeekDescriptionBuilder.java:49)\r\n\tat net.redhogs.cronparser.builder.AbstractDescriptionBuilder.getSegmentDescription(AbstractDescriptionBuilder.java:52)\r\n\tat net.redhogs.cronparser.CronExpressionDescriptor.getDayOfWeekDescription(CronExpressionDescriptor.java:117)\r\n\tat net.redhogs.cronparser.CronExpressionDescriptor.getFullDescription(CronExpressionDescriptor.java:235)\r\n\tat net.redhogs.cronparser.CronExpressionDescriptor.getDescription(CronExpressionDescriptor.java:62)\r\n\tat net.redhogs.cronparser.CronExpressionDescriptor.getDescription(CronExpressionDescriptor.java:27)"},"comment":{"url":"https://api.github.com/repos/RedHogs/cron-parser/issues/comments/108310617","html_url":"https://github.com/RedHogs/cron-parser/issues/23#issuecomment-108310617","issue_url":"https://api.github.com/repos/RedHogs/cron-parser/issues/23","id":108310617,"user":{"login":"grahamar","id":1964861,"avatar_url":"https://avatars.githubusercontent.com/u/1964861?v=3","gravatar_id":"","url":"https://api.github.com/users/grahamar","html_url":"https://github.com/grahamar","followers_url":"https://api.github.com/users/grahamar/followers","following_url":"https://api.github.com/users/grahamar/following{/other_user}","gists_url":"https://api.github.com/users/grahamar/gists{/gist_id}","starred_url":"https://api.github.com/users/grahamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahamar/subscriptions","organizations_url":"https://api.github.com/users/grahamar/orgs","repos_url":"https://api.github.com/users/grahamar/repos","events_url":"https://api.github.com/users/grahamar/events{/privacy}","received_events_url":"https://api.github.com/users/grahamar/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T11:23:28Z","updated_at":"2015-06-03T11:23:28Z","body":"I'll have a fix out for this today, thanks for the pull request @mcallinder "}}