[TECHNICAL-SUPPORT] LPS-51675 Fix equals methods in DateUtil

https://issues.liferay.com/browse/LPS-51675

Hi Norbi,

Caused by LPS-19823: liferay@a7bc2a3712302fa699d3a9ae0a8bdb1c8acce529

-Tibi