修改成常量
parent
3d340f2511
commit
ce10e5f88a
|
@ -1405,7 +1405,7 @@ public class TimeUtils {
|
||||||
Calendar cal = Calendar.getInstance();
|
Calendar cal = Calendar.getInstance();
|
||||||
cal.setTimeInMillis(time);
|
cal.setTimeInMillis(time);
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
if(cal.get(Calendar.DAY_OF_WEEK)==1){
|
if(cal.get(Calendar.DAY_OF_WEEK)==Calendar.SUNDAY){
|
||||||
offset-=TimeUtils.WEEK;
|
offset-=TimeUtils.WEEK;
|
||||||
}
|
}
|
||||||
cal.set(Calendar.DAY_OF_WEEK,week==7?0:week+1);
|
cal.set(Calendar.DAY_OF_WEEK,week==7?0:week+1);
|
||||||
|
|
Loading…
Reference in New Issue