{"action":"created","issue":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2884","labels_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2884/labels{/name}","comments_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2884/comments","events_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2884/events","html_url":"https://github.com/fullcalendar/fullcalendar/issues/2884","id":109350574,"number":2884,"title":"Title is computed incorrectly for work week (no weekends)","user":{"login":"gas12n","id":5608664,"avatar_url":"https://avatars.githubusercontent.com/u/5608664?v=3","gravatar_id":"","url":"https://api.github.com/users/gas12n","html_url":"https://github.com/gas12n","followers_url":"https://api.github.com/users/gas12n/followers","following_url":"https://api.github.com/users/gas12n/following{/other_user}","gists_url":"https://api.github.com/users/gas12n/gists{/gist_id}","starred_url":"https://api.github.com/users/gas12n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gas12n/subscriptions","organizations_url":"https://api.github.com/users/gas12n/orgs","repos_url":"https://api.github.com/users/gas12n/repos","events_url":"https://api.github.com/users/gas12n/events{/privacy}","received_events_url":"https://api.github.com/users/gas12n/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T17:55:08Z","updated_at":"2015-10-11T16:57:38Z","closed_at":"2015-10-11T16:57:38Z","body":"I have a custom view that is defined as:\r\n```\r\nagendaNoWeekend: \r\n{\r\n  type: \"agendaWeek\",\r\n  buttonText: \"Work week\",\r\n  weekends: false\r\n}\r\n```\r\n\r\nThe function `computeTitle` uses `intervalStart`  and `intervalEnd` which include weekends. My undestanding is that `start` and `end` have hidden days skipped. By using `start` and `end` the title will reflect the period of time the calendar is actually showing (e.g. in this case it won't show the weekend). \r\n\r\nA byproduct of using `start` and `end` is that in month view for October it would show something like  September - November because that's the actual period the calendar is showing (last few days of September and first few of October).\r\n\r\nThis change seems to work for me:\r\n\r\n```\r\ncomputeTitle: function () {\r\n\r\n            var startDate, endDate;\r\n\r\n            if (this.intervalUnit == 'month') {\r\n                startDate = this.intervalStart;\r\n                endDate = this.intervalEnd;\r\n            }\r\n\r\n            else {\r\n                startDate = this.start;\r\n                endDate = this.end;\r\n            }\r\n\r\n            return this.formatRange(\r\n            { start: startDate, end: endDate },\r\n                this.opt('titleFormat') || this.computeTitleFormat(),\r\n                this.opt('titleRangeSeparator')\r\n            );\r\n        }\r\n```\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/comments/147221087","html_url":"https://github.com/fullcalendar/fullcalendar/issues/2884#issuecomment-147221087","issue_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2884","id":147221087,"user":{"login":"arshaw","id":56520,"avatar_url":"https://avatars.githubusercontent.com/u/56520?v=3","gravatar_id":"","url":"https://api.github.com/users/arshaw","html_url":"https://github.com/arshaw","followers_url":"https://api.github.com/users/arshaw/followers","following_url":"https://api.github.com/users/arshaw/following{/other_user}","gists_url":"https://api.github.com/users/arshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/arshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arshaw/subscriptions","organizations_url":"https://api.github.com/users/arshaw/orgs","repos_url":"https://api.github.com/users/arshaw/repos","events_url":"https://api.github.com/users/arshaw/events{/privacy}","received_events_url":"https://api.github.com/users/arshaw/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T16:57:38Z","updated_at":"2015-10-11T16:57:38Z","body":"hi @gas12n thanks for the report, but would you be able to post a demoable recreation as well? http://fullcalendar.io/wiki/Reporting-Bugs/\r\n\r\nwould really help. thanks"}}