0
0
Fork 0
This commit is contained in:
Alex Moreno 2024-07-16 10:18:28 +02:00
parent c13f7fe237
commit 9cc11f0a28
1 changed files with 2 additions and 2 deletions

View File

@ -49,9 +49,9 @@ const formattedTime = computed({
time = time.substring(0, 2) + ':' + time.substring(3, 5);
}
if (!props.timeOnly) {
const hours = time.split(':');
const [hh, mm] = time.split(':');
const date = new Date(model.value ? model.value : null);
date.setHours(hours[0] ?? 0, hours[1] ?? 0, 0);
date.setHours(hh, mm, 0);
time = date?.toISOString();
}
}