From f3028060ca36e1b8cc9edae5340ab489324f54ee Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Wed, 31 May 2023 14:02:21 +0200 Subject: [PATCH] beep --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 8c60c0a..c6af7a2 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,5 @@ function calculateYearsSince() { - const now = new Date().getTime(); - const diffInMs = now.now() - now.getTime(); + const diffInMs = Date.now() - Date.getTime(); const diffInYears = diffInMs / (1000 * 60 * 60 * 24 * 365.25); const days = Math.floor(diffInMs / (1000 * 60 * 60 * 24)); const hours = Math.floor((diffInMs % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));