diff --git a/webapp/src/components/ManageAssetPage/Sell/Sell.tsx b/webapp/src/components/ManageAssetPage/Sell/Sell.tsx
index 4cc447106d..a9f75e2644 100644
--- a/webapp/src/components/ManageAssetPage/Sell/Sell.tsx
+++ b/webapp/src/components/ManageAssetPage/Sell/Sell.tsx
@@ -86,7 +86,10 @@ const Sell = (props: Props) => {
{t('manage_asset_page.sell.expiration_date')}
- {intlFormat(order.expiresAt)}
+ {intlFormat(
+ order.expiresAt *
+ (order.expiresAt.toString().length === 10 ? 1000 : 1)
+ )}
diff --git a/webapp/src/components/Modals/SellModal/SellModal.tsx b/webapp/src/components/Modals/SellModal/SellModal.tsx
index 3d589bb3eb..ab8adf767b 100644
--- a/webapp/src/components/Modals/SellModal/SellModal.tsx
+++ b/webapp/src/components/Modals/SellModal/SellModal.tsx
@@ -71,11 +71,22 @@ const SellModal = ({
isUpdate ? ethers.utils.formatEther(order!.price) : ''
)
- const [expiresAt, setExpiresAt] = useState(
- isUpdate && order!.expiresAt && isValid(order!.expiresAt)
- ? formatDate(addDays(order!.expiresAt, 1), INPUT_FORMAT)
- : getDefaultExpirationDate()
- )
+ const [expiresAt, setExpiresAt] = useState(() => {
+ let exp = order?.expiresAt
+
+ if (isUpdate && exp) {
+ // If the order's expiration is in seconds, convert it to milliseconds
+ if (exp.toString().length === 10) {
+ exp = exp * 1000
+ }
+
+ if (isValid(exp)) {
+ return formatDate(addDays(exp, 1), INPUT_FORMAT)
+ }
+ }
+
+ return getDefaultExpirationDate()
+ })
const parsedValueToConfirm = parseFloat(price).toString()