fix date parsing

This commit is contained in:
Anton Romanov 2020-03-28 10:27:47 +04:00
parent a17dac55e2
commit a14735699c

View File

@ -14,6 +14,9 @@ import java.util.List;
public class DateUtils {
public static Date clearTime(Date date) {
if (date == null) {
return null;
}
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.set(Calendar.HOUR_OF_DAY, 0);