diff --git a/xframe/src/main/java/com/youth/xframe/utils/XDateUtils.java b/xframe/src/main/java/com/youth/xframe/utils/XDateUtils.java index e766215..2edd00a 100644 --- a/xframe/src/main/java/com/youth/xframe/utils/XDateUtils.java +++ b/xframe/src/main/java/com/youth/xframe/utils/XDateUtils.java @@ -1,7 +1,5 @@ package com.youth.xframe.utils; -import android.annotation.SuppressLint; - import com.youth.xframe.entity.DateDifference; import java.text.ParseException; @@ -308,7 +306,7 @@ public static DateDifference getTwoDataDifference(Date date1, Date date2) { difference.setSecond(millis/SEC); difference.setMinute(millis/MIN); difference.setHour(millis/HOUR); - difference.setHour(millis/DAY); + difference.setDay(millis/DAY); return difference; }