From c1946b5109929c4049687a81415cc35ab6bae339 Mon Sep 17 00:00:00 2001 From: isstuev Date: Mon, 18 Mar 2024 11:25:17 +0400 Subject: [PATCH] metadata date fix --- lib/token/metadata/attributesParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/token/metadata/attributesParser.ts b/lib/token/metadata/attributesParser.ts index c863000366..00119abe90 100644 --- a/lib/token/metadata/attributesParser.ts +++ b/lib/token/metadata/attributesParser.ts @@ -19,7 +19,7 @@ function formatValue(value: string | number, display: string | undefined, trait: } case 'date': { return { - value: dayjs(value).format('YYYY-MM-DD'), + value: dayjs(Number(value) * 1000).format('YYYY-MM-DD'), }; } default: {