Fixed the displayed date of week (plus 6).
This commit is contained in:
parent
a2f50008a5
commit
292b33d126
@ -113,7 +113,10 @@ public class AgirStatoolUtils
|
|||||||
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
|
LocalDate date = AgirStatoolUtils.normaliseWeekDate(start);
|
||||||
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
while (date.isBefore(normalizedEnd) || date.isEqual(normalizedEnd))
|
||||||
{
|
{
|
||||||
String label = date.format(DateTimeFormatter.ISO_DATE);
|
// The normalized date is set to the first day of the week.
|
||||||
|
// The displayed date is set to the last day of the week. So
|
||||||
|
// plus 6.
|
||||||
|
String label = date.plusDays(6).format(DateTimeFormatter.ISO_DATE);
|
||||||
result.add(label);
|
result.add(label);
|
||||||
date = date.plusWeeks(1);
|
date = date.plusWeeks(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user