Skip to content

Commit

Permalink
SUPP0RT-1586: remove some date manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
sinejespersen committed Jul 30, 2024
1 parent f64b131 commit 2ff9fd0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/util/schedule/schedule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,9 @@ function Schedule({ schedules, onChange }) {
* @param {object} target - Input target.
*/
const setDateValue = (scheduleId, target) => {
const date = target.valueAsDate;
const scheduleDate = new Date(
date.getTime() + 60 * 1000 * date.getTimezoneOffset()
);
const date = new Date(target.value);

changeSchedule(scheduleId, target.id, scheduleDate);
changeSchedule(scheduleId, target.id, date);
};

/**
Expand Down

0 comments on commit 2ff9fd0

Please sign in to comment.