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
https://uploaddeimagens.com.br/imagens/3-png--2403

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

This bug is reportedly resolved in 6.0. See https://bugs.documentfoundation.org/show_bug.cgi?id=106214.

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