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

Bugfix - beacon meta timezone #29

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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