diff --git a/packages/server/src/queries/complex/orderbooks/active-orders.ts b/packages/server/src/queries/complex/orderbooks/active-orders.ts
index 6b1fa9d618..83a76435ac 100644
--- a/packages/server/src/queries/complex/orderbooks/active-orders.ts
+++ b/packages/server/src/queries/complex/orderbooks/active-orders.ts
@@ -193,7 +193,7 @@ async function getTickInfoAndTransformOrders(
output,
quoteAsset,
baseAsset,
- placed_at: dayjs(o.placed_at / 1000).unix(),
+ placed_at: dayjs(Math.floor(o.placed_at / 1000000)).unix(),
};
});
}
diff --git a/packages/web/components/complex/orders-history/index.tsx b/packages/web/components/complex/orders-history/index.tsx
index f699df1871..422c4c09f3 100644
--- a/packages/web/components/complex/orders-history/index.tsx
+++ b/packages/web/components/complex/orders-history/index.tsx
@@ -456,8 +456,8 @@ const TableOrderRow = memo(
case "partiallyFilled":
return ;
case "cancelled":
- const dayDiff = dayjs(new Date()).diff(dayjs(placed_at), "d");
- const hourDiff = dayjs(new Date()).diff(dayjs(placed_at), "h");
+ const dayDiff = dayjs(new Date()).diff(placedAt, "d");
+ const hourDiff = dayjs(new Date()).diff(placedAt, "h");
return (