inputs = {
const offset = new Date().getTimezoneOffset();
let newBase = new Date(new Date().getTime() + 86400 * 1000);
const inputString = "05/07/2024 03:00";
const tmrwStart = parseDateStringWithOffset(inputString, 240);
const endString = "05/07/2024 13:00";
const tmrwEnd = parseDateStringWithOffset(endString, 240);
const inputs = {
shiftStart: Inputs.datetime({
label: "Shift Start",
value: tmrwStart.toISOString().slice(0, -1)
}),
shiftEnd: Inputs.datetime({
label: "Shift End",
value: `${tmrwEnd.toISOString().slice(0, -1)}`
}),
objectiveFunction: Inputs.select(objectives, {
label: "Objective Function",
format: (x) => x.name,
value: objectives.find((t) => t.name === "Minimize Time")
}),
shiftHours: Inputs.text({
label: "Shift duration in hours",
value: "10"
}),
serviceTime: Inputs.text({
label: "Service Time at Each Stop",
value: "900"
})
};
return inputs;
}