This commit is contained in:
David Langley 2024-11-07 09:37:40 +00:00
parent 29b75385a3
commit 4ff08f942d
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ export default class DateSeparator extends React.Component<IProps, IState> {
} else {
return formatFullDateNoTime(date);
}
} catch (e) {
} catch (_) {
return _t("common|message_timestamp_invalid");
}
}

View file

@ -92,7 +92,7 @@ describe("DateSeparator", () => {
});
it("renders invalid date separator correctly", () => {
let ts = new Date(-8640000000000004).getTime();
const ts = new Date(-8640000000000004).getTime();
const { asFragment } = getComponent({ ts });
expect(asFragment()).toMatchSnapshot();
});