update math.floor date

This commit is contained in:
2025-08-01 22:37:02 +03:00
parent 493f3a11e2
commit 19ac6c1ac1
2 changed files with 2 additions and 2 deletions

View File

@@ -269,7 +269,7 @@
if (dateStr.length === 10 && timeStr.length === 5) {
const newDate = date.extractDate(`${dateStr} ${timeStr}`, 'DD/MM/YYYY HH:mm')
if (!isNaN(newDate.getTime())) {
modelValue.value.meet_date = newDate.getTime() / 1000
modelValue.value.meet_date = Math.floor(newDate.getTime() / 1000)
}
}
}

View File

@@ -331,7 +331,7 @@
if (dateStr.length === 10 && timeStr.length === 5) {
const newDate = date.extractDate(`${dateStr} ${timeStr}`, 'DD/MM/YYYY HH:mm')
if (!isNaN(newDate.getTime())) {
modelValue.value.plan_date = newDate.getTime() / 1000
modelValue.value.plan_date = Math.floor(newDate.getTime() / 1000)
}
}
}