From 909cc17a8bf1457d31ed9e8744db32749e4d3187 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 12 Dec 2021 02:17:17 +0100 Subject: [PATCH] Fixed week metric graphic label. --- src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java b/src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java index 2820a80..d4d58bd 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java +++ b/src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java @@ -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);