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} />);
|
render(<DataSourceProof dataSourceSpecId={''} {...props} />);
|
||||||
expect(screen.getByText('Internal conditions')).toBeInTheDocument();
|
expect(screen.getByText('Internal conditions')).toBeInTheDocument();
|
||||||
const dateFromUnixTimestamp = condition.value
|
const dateFromUnixTimestamp = condition.value
|
||||||
? getDateTimeFormat().format(new Date(parseInt(condition.value)))
|
? getDateTimeFormat().format(new Date(parseInt(condition.value) * 1000))
|
||||||
: '-';
|
: '-';
|
||||||
expect(
|
expect(
|
||||||
screen.getByText(
|
screen.getByText(
|
||||||
|
@ -1263,7 +1263,9 @@ export const DataSourceProof = ({
|
|||||||
{data.sourceType.sourceType?.conditions?.map((condition, i) => {
|
{data.sourceType.sourceType?.conditions?.map((condition, i) => {
|
||||||
if (!condition) return null;
|
if (!condition) return null;
|
||||||
const dateFromUnixTimestamp = condition.value
|
const dateFromUnixTimestamp = condition.value
|
||||||
? getDateTimeFormat().format(new Date(parseInt(condition.value)))
|
? getDateTimeFormat().format(
|
||||||
|
new Date(parseInt(condition.value) * 1000)
|
||||||
|
)
|
||||||
: '-';
|
: '-';
|
||||||
return (
|
return (
|
||||||
<p key={i}>
|
<p key={i}>
|
||||||
|
Loading…
Reference in New Issue
Block a user