Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #29 from cisagov/bugfix/time-of-death-timezone-ind…
Browse files Browse the repository at this point in the history
…icator-doesn-t-update-until-we-refresh-the-page
  • Loading branch information
GoldingAustin committed Nov 2, 2022
2 parents 8ac20a0 + 6c99f26 commit a8fb990
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export const BeaconMeta = observer(() => {
<MetaHeader>Time of Death </MetaHeader>
<div cy-test="beacon-time-of-death">
<DateInput2
key={store.settings.timezone}
disabled={!!store.appMeta.blueTeam}
value={store.settings.momentTz(state.displayDeath).toISOString()}
disableTimezoneSelect
Expand All @@ -152,7 +153,7 @@ export const BeaconMeta = observer(() => {
fill
closeOnSelection={false}
canClearSelection={false}
formatDate={(date) => (date == null ? '' : store.settings.momentTz(date).format(dateTimeFormat))}
formatDate={(date) => (date == null ? '' : moment(date).format(dateTimeFormat))}
parseDate={(str) => store.settings.momentTz(str).toDate()}
onChange={(datetime) => {
const min = store.campaign.timeline.maxRange?.[0];
Expand Down

0 comments on commit a8fb990

Please sign in to comment.