fix a bug

This commit is contained in:
hlq07 2018-05-12 01:02:26 +08:00
parent c23cb33aef
commit 07e210ffeb
1 changed files with 1 additions and 1 deletions

View File

@ -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);