Fix missing day numbers in date ranges for custom views. #252