Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #757 from MeasureAuthoringTool/MAT-7679_DateTimeCo…
Browse files Browse the repository at this point in the history
…mponent

MAT-7679 DateTime component fix change value
  • Loading branch information
sb-cecilialiu authored Nov 7, 2024
2 parents f02d500 + 40c8af2 commit 0163a13
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const DateTimeComponent = ({
setTime(converted.format(DATE_TIME_ZONE_FORMAT));
setFormattedDate(converted.format(DATE_FORMAT));
setFormattedTime(converted.format(TIME_FORMAT));
}, [value]);
}, []);

const renderMenuItems = (options: MenuObj[]) => {
return [
Expand Down Expand Up @@ -242,7 +242,6 @@ const DateTimeComponent = ({
onChange={(event) => {
const newTimeZone = event.target.value;
setTimeZone(newTimeZone);

const offset = getOffSet(newTimeZone);
const changedDate = handleDateTimeChange(
formattedDate,
Expand Down

0 comments on commit 0163a13

Please sign in to comment.