Problem with calc date filters

I am having problem with some versions of LibreOffice Calc that does not filter correctly when used date.
As shown in the image below I select the year 2016 in the date filter but it pulls records from 2017

image description
image description

I have tested with several worksheets and it happens the same way.
I am using version (I tried with the previous 2 and it happened the same way)

This bug is reportedly resolved in 6.0. See

Also asked at AutoFilter no longer working with dates in calc.