From 74b47a23687f46d9bf59589c76bebe4112cde5f3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-481791G\\S2-PC00" Date: Tue, 24 Feb 2026 20:56:20 +0100 Subject: [PATCH 1/2] =?UTF-8?q?A=C3=B1ado=20un=20fallo=20a=20prop=C3=B3sit?= =?UTF-8?q?o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dateUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dateUtils.js b/src/utils/dateUtils.js index a4e677e..62afaf4 100644 --- a/src/utils/dateUtils.js +++ b/src/utils/dateUtils.js @@ -1,7 +1,7 @@ function getDays(fromDate, toDate) { const days = toDate.getTime() - fromDate.getTime(); - return Math.abs(Math.round(days / (1000 * 3600 * 24))); + return Math.abs(Math.round(days / (1000 * 3600 * 24))) + 1; } function getDaysFromNow(date) { From d5f58fda73e9dc0b5edc72e649a3f0d7cd4f1284 Mon Sep 17 00:00:00 2001 From: "DESKTOP-481791G\\S2-PC00" Date: Tue, 24 Feb 2026 20:59:35 +0100 Subject: [PATCH 2/2] Arreglado blab blab --- src/utils/dateUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dateUtils.js b/src/utils/dateUtils.js index 62afaf4..a4e677e 100644 --- a/src/utils/dateUtils.js +++ b/src/utils/dateUtils.js @@ -1,7 +1,7 @@ function getDays(fromDate, toDate) { const days = toDate.getTime() - fromDate.getTime(); - return Math.abs(Math.round(days / (1000 * 3600 * 24))) + 1; + return Math.abs(Math.round(days / (1000 * 3600 * 24))); } function getDaysFromNow(date) {