fix a bug
This commit is contained in:
parent
c23cb33aef
commit
07e210ffeb
|
@ -27,7 +27,7 @@ public class CalendarUtil {
|
|||
public static int[] splitCalendar(@NotNull Calendar calendar) {
|
||||
int[] result = new int[7];
|
||||
result[0] = calendar.get(Calendar.YEAR);
|
||||
result[1] = calendar.get(Calendar.MONTH);
|
||||
result[1] = calendar.get(Calendar.MONTH) + 1;
|
||||
result[2] = calendar.get(Calendar.DAY_OF_MONTH);
|
||||
result[3] = calendar.get(Calendar.HOUR_OF_DAY);
|
||||
result[4] = calendar.get(Calendar.MINUTE);
|
||||
|
|
Loading…
Reference in New Issue