fix issue#24 by switching datestring from DMY/MDY formats to YMD

This commit is contained in:
2022-09-14 21:23:35 +02:00
parent a49bb45ae6
commit e1eb23427e

View File

@@ -39,7 +39,8 @@ export default function Home() {
<a className="days"> <a className="days">
<h1> <h1>
{Math.floor( {Math.floor(
(Date.now() - new Date("06.07.2020").getTime()) / 86400000 // (Date.now() - new Date("06.07.2020").getTime()) / 86400000
(Date.now() - new Date("2020-07-06").getTime()) / 86400000
)}{" "} )}{" "}
dni dni
</h1> </h1>