fix date parsing
This commit is contained in:
parent
a17dac55e2
commit
a14735699c
@ -14,6 +14,9 @@ import java.util.List;
|
|||||||
public class DateUtils {
|
public class DateUtils {
|
||||||
|
|
||||||
public static Date clearTime(Date date) {
|
public static Date clearTime(Date date) {
|
||||||
|
if (date == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
calendar.setTime(date);
|
calendar.setTime(date);
|
||||||
calendar.set(Calendar.HOUR_OF_DAY, 0);
|
calendar.set(Calendar.HOUR_OF_DAY, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user