diff --git a/app/src/main/java/org/cutem/cutecalendar/util/CalendarUtil.java b/app/src/main/java/org/cutem/cutecalendar/util/CalendarUtil.java index c9dd22e..6a7c7a0 100644 --- a/app/src/main/java/org/cutem/cutecalendar/util/CalendarUtil.java +++ b/app/src/main/java/org/cutem/cutecalendar/util/CalendarUtil.java @@ -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);