forked from verdnatura/salix-front
variable
This commit is contained in:
parent
c13f7fe237
commit
9cc11f0a28
|
@ -49,9 +49,9 @@ const formattedTime = computed({
|
||||||
time = time.substring(0, 2) + ':' + time.substring(3, 5);
|
time = time.substring(0, 2) + ':' + time.substring(3, 5);
|
||||||
}
|
}
|
||||||
if (!props.timeOnly) {
|
if (!props.timeOnly) {
|
||||||
const hours = time.split(':');
|
const [hh, mm] = time.split(':');
|
||||||
const date = new Date(model.value ? model.value : null);
|
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();
|
time = date?.toISOString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue