fix: use pascalCase

This commit is contained in:
JustTemmie 2025-07-03 19:02:44 +02:00
parent d90252542d
commit 0befc42ec8
Signed by: justtemmie
SSH key fingerprint: SHA256:nBO+OwpTkd8LYhe38PIqdxmDvkIg9Vw2EbrRZM97dkU
2 changed files with 8 additions and 8 deletions

View file

@ -77,10 +77,10 @@ onMounted(async () => {
// showHover.value = !showHover.value;
//}
function getDayDifference(date_1: Date, date_2: Date) {
function getDayDifference(date1: Date, date2: Date) {
// Normalize both dates to midnight
const midnight1 = new Date(date_1.getFullYear(), date_1.getMonth(), date_1.getDate());
const midnight2 = new Date(date_2.getFullYear(), date_2.getMonth(), date_2.getDate());
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();