From ce10e5f88a0e9875050f760ae2d30d22a6b35d99 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Mon, 12 Jul 2021 11:33:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamecommon/src/main/java/util/TimeUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamecommon/src/main/java/util/TimeUtils.java b/gamecommon/src/main/java/util/TimeUtils.java index cf6083eb7..4ec456bdf 100644 --- a/gamecommon/src/main/java/util/TimeUtils.java +++ b/gamecommon/src/main/java/util/TimeUtils.java @@ -1405,7 +1405,7 @@ public class TimeUtils { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); int offset = 0; - if(cal.get(Calendar.DAY_OF_WEEK)==1){ + if(cal.get(Calendar.DAY_OF_WEEK)==Calendar.SUNDAY){ offset-=TimeUtils.WEEK; } cal.set(Calendar.DAY_OF_WEEK,week==7?0:week+1);