From ea2efd9c095bb4387ffe0856cccd9b1d88c9ad10 Mon Sep 17 00:00:00 2001 From: Laurent Garnier Date: Sat, 11 Nov 2023 15:09:33 +0100 Subject: [PATCH] Fix number of days (rounbding) for 2 months and 4 months Signed-off-by: Laurent Garnier --- .../java/org/openhab/core/ui/internal/chart/ChartServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/chart/ChartServlet.java b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/chart/ChartServlet.java index 39b41ef3dcc..f084bf71814 100644 --- a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/chart/ChartServlet.java +++ b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/chart/ChartServlet.java @@ -107,8 +107,8 @@ public class ChartServlet extends HttpServlet { entry("D", Duration.ofDays(1)), entry("2D", Duration.ofDays(2)), // entry("3D", Duration.ofDays(3)), entry("W", Duration.ofDays(7)), // entry("2W", Duration.ofDays(14)), entry("M", Duration.ofDays(30)), // - entry("2M", Duration.ofDays(60)), entry("3M", Duration.ofDays(91)), // - entry("4M", Duration.ofDays(121)), entry("6M", Duration.ofDays(182)), // + entry("2M", Duration.ofDays(61)), entry("3M", Duration.ofDays(91)), // + entry("4M", Duration.ofDays(122)), entry("6M", Duration.ofDays(182)), // entry("Y", Duration.ofDays(365)), entry("2Y", Duration.ofDays(730))// );