From b4cd645010c15d7935e4fd02c048dadefb5622a0 Mon Sep 17 00:00:00 2001 From: Bence Stumpf Date: Fri, 20 Apr 2018 13:37:14 +0200 Subject: [PATCH] Fix getDayForDate method --- library/src/main/java/solar/blaz/date/week/WeekDatePicker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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