fix(trading): internal timestamp date unix formatting (#5505)
This commit is contained in:
parent
ec837854cf
commit
4b208e90bf
@ -135,7 +135,7 @@ describe('MarketInfoPanels', () => {
|
||||
render(<DataSourceProof dataSourceSpecId={''} {...props} />);
|
||||
expect(screen.getByText('Internal conditions')).toBeInTheDocument();
|
||||
const dateFromUnixTimestamp = condition.value
|
||||
? getDateTimeFormat().format(new Date(parseInt(condition.value)))
|
||||
? getDateTimeFormat().format(new Date(parseInt(condition.value) * 1000))
|
||||
: '-';
|
||||
expect(
|
||||
screen.getByText(
|
||||
|
@ -1263,7 +1263,9 @@ export const DataSourceProof = ({
|
||||
{data.sourceType.sourceType?.conditions?.map((condition, i) => {
|
||||
if (!condition) return null;
|
||||
const dateFromUnixTimestamp = condition.value
|
||||
? getDateTimeFormat().format(new Date(parseInt(condition.value)))
|
||||
? getDateTimeFormat().format(
|
||||
new Date(parseInt(condition.value) * 1000)
|
||||
)
|
||||
: '-';
|
||||
return (
|
||||
<p key={i}>
|
||||
|
Loading…
Reference in New Issue
Block a user