Fixed week metric graphic label.

This commit is contained in:
Christian P. MOMON 2021-12-12 02:17:17 +01:00
parent 8342850d13
commit 909cc17a8b

View file

@ -748,7 +748,7 @@ public class ChartHtmlizer
{
for (YearWeek timestamp = startTarget; !timestamp.isAfter(endTarget); timestamp = timestamp.plusWeeks(1))
{
LocalDate date = timestamp.atDay(DayOfWeek.MONDAY).plusWeeks(1);
LocalDate date = timestamp.atDay(DayOfWeek.MONDAY).plusDays(6);
String timestampLabel = date.format(DateTimeFormatter.ofPattern("yyyy-MMM-dd", Locale.FRANCE));
chart.getLabels().add(timestampLabel);