From 4ebb436fb2772734f03e6a0648d11da1eb3bb702 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Thu, 3 Jul 2025 19:03:05 +0200 Subject: [PATCH] fix: remove LLM pilled comments --- components/Message.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/Message.vue b/components/Message.vue index facaf94..e8a91b5 100644 --- a/components/Message.vue +++ b/components/Message.vue @@ -78,17 +78,14 @@ onMounted(async () => { //} function getDayDifference(date1: Date, date2: Date) { -// Normalize both dates to midnight const midnight1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate()); const midnight2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate()); - // Calculate the difference in time const timeDifference = midnight2.getTime() - midnight1.getTime(); - // Convert time difference from milliseconds to days const dayDifference = timeDifference / (1000 * 60 * 60 * 24); - return Math.round(dayDifference); // Round to the nearest whole number + return Math.round(dayDifference); }