diff --git a/library/src/main/java/solar/blaz/date/week/WeekDatePicker.java b/library/src/main/java/solar/blaz/date/week/WeekDatePicker.java index 898587e..2078419 100644 --- a/library/src/main/java/solar/blaz/date/week/WeekDatePicker.java +++ b/library/src/main/java/solar/blaz/date/week/WeekDatePicker.java @@ -817,7 +817,7 @@ public void setDateIndicator(@NonNull LocalDate date, boolean enabled) { } private int getDayForDate(@NonNull LocalDate date) { - return firstDay.until(date).getDays(); + return (int) firstDay.until(date,ChronoUnit.DAYS); } @Override