fix correct datetimes in jobslots when change event start

This commit is contained in:
Tim Gröger 2024-01-16 15:55:14 +01:00
parent 7b1e37b3a7
commit 084ad8f945
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ export default defineComponent({
const diff = newValue.getTime() - oldValue.getTime();
event.value?.jobs.forEach((job) => {
job.start.setTime(job.start.getTime() + diff);
job.end?.setTime(job.end.getTime() + diff);
});
computed_end.value?.setTime(computed_end.value?.getTime() + diff);
setTimeout(() => {