Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj authored Aug 1, 2024
2 parents 2a0b19e + 98a7184 commit 9a048cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ All notable changes to this project will be documented in this file.
- Make the station selector call new api
- Add config to context in app.jsx

## [2.0.3] - 2024-08-01

- [#243](https://github.com/os2display/display-admin-client/pull/251)
- Fix null bug: replace valueAsDate with target.value as valueAsDate was null

## [2.0.2] - 2024-04-25

- [#242](https://github.com/os2display/display-admin-client/pull/242)
Expand Down
8 changes: 2 additions & 6 deletions src/components/util/schedule/schedule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,8 @@ 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()
);

changeSchedule(scheduleId, target.id, scheduleDate);
const date = new Date(target.value);
changeSchedule(scheduleId, target.id, date);
};

/**
Expand Down

0 comments on commit 9a048cf

Please sign in to comment.