diff --git a/frontend/src/components/forms/TimeOffsetForm.tsx b/frontend/src/components/forms/TimeOffsetForm.tsx index cdd095bdc..132539bea 100644 --- a/frontend/src/components/forms/TimeOffsetForm.tsx +++ b/frontend/src/components/forms/TimeOffsetForm.tsx @@ -47,7 +47,12 @@ const TimeOffsetForm: FunctionComponent = ({ selections, onSubmit }) => { return (
{ - const action = convertToAction(hour, min, sec, ms); + let action: string; + if (positive) { + action = convertToAction(hour, min, sec, ms); + } else { + action = convertToAction(-hour, -min, -sec, -ms); + } selections.forEach((s) => task.create(s.path, TaskName, mutateAsync, {