From 2ea0d01f7f5857fe4d685d62b9735f6a648181b2 Mon Sep 17 00:00:00 2001 From: zpalmtree <22151537+zpalmtree@users.noreply.github.com> Date: Fri, 1 Oct 2021 02:27:44 +0100 Subject: [PATCH] Fix timestamp loading --- src/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Home.tsx b/src/Home.tsx index 93bcf2b62..5dec94fe9 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -52,7 +52,7 @@ const Home = (props: HomeProps) => { severity: undefined, }); - const [startDate, setStartDate] = useState(new Date(props.startDate)); + const [startDate, setStartDate] = useState(new Date(props.startDate * 1000)); const wallet = useAnchorWallet(); const [candyMachine, setCandyMachine] = useState();