Pages dated 31 December not showing in year date range

I have narrowed this down to what I’m sure is a bug re. date ranges and date frontmatter.

The new post is here:

Last page in a date range is not displayed in a listing if that page’s frontmatter date field contains a time.