From 1f03add87bb2bdda1b6cea6200c04abff15d1f13 Mon Sep 17 00:00:00 2001 From: Julian B Date: Thu, 19 Sep 2024 14:28:26 +0200 Subject: [PATCH] fix wrong day display --- ephios/static/ephios/js/event_copy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ephios/static/ephios/js/event_copy.js b/ephios/static/ephios/js/event_copy.js index 8eb095d0e..f8bde71b7 100644 --- a/ephios/static/ephios/js/event_copy.js +++ b/ephios/static/ephios/js/event_copy.js @@ -2,7 +2,7 @@ const {createApp, ref, computed} = Vue function formatDate(date_obj, sep = "-") { let month = date_obj.getMonth() + 1; - let day = date_obj.getDate() + 1; + let day = date_obj.getDate(); return date_obj.getFullYear() + sep + (month < 10 ? "0" : "") + month + sep + (day < 10 ? "0" : "") + day }