From de4972f7bccd59c03367e58a07d3e39dd778d3ad Mon Sep 17 00:00:00 2001 From: amin Date: Fri, 2 Jun 2017 15:49:25 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=97=B6=E9=97=B4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xframe/src/main/java/com/youth/xframe/utils/XDateUtils.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }