fix issue#24 by switching datestring from DMY/MDY formats to YMD
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user