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

Commit

Permalink
MAT-7679 DateTime component fix change value
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-cecilialiu committed Nov 7, 2024
1 parent f02d500 commit 40c8af2
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 40c8af2

Please sign in to comment.