获得时间修改
parent
986132b500
commit
3dd7b997f6
|
@ -1147,7 +1147,8 @@ public class TimeUtils {
|
|||
public static int getDayOfWeek() {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTimeInMillis(now());
|
||||
return calendar.get(Calendar.DAY_OF_WEEK) - 1;
|
||||
int week = calendar.get(Calendar.DAY_OF_WEEK) - 1;
|
||||
return week==0?7:week;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue