Clover bug: dateDiff()

Clover version: 3.1.0 jdk1.6.0_20

dateDiff(str2data(“28.1.2014”,“dd.MM.yyyy”),str2data(“29.1.2009”,“dd.MM.yyyy”),day)=1824

Clover version: 3.2.0 jdk1.6.0_20

dateDiff(str2data(“28.1.2014”,“dd.MM.yyyy”),str2data(“29.1.2009”,“dd.MM.yyyy”),day)=1825

is it a bug Clover version 3.1.0?

oracle 10
select to_date(‘28012014’,‘ddmmyyyy’)-to_date(‘29012009’,‘ddmmyyyy’) from dual
1825

Hi golomeen,

this function was bugged and did not work properly so it was redesigned, see e.g. https://bug.javlin.eu/browse/CL-2263. Everything should be ok in the newer versions.

Best regards,