From 1ba2a430fe3599c023c46006f3b8db32d0fa2f1f Mon Sep 17 00:00:00 2001 From: Raymon Zutekouw Date: Thu, 3 Sep 2020 14:48:54 +0200 Subject: [PATCH] Remove extra chromosome broken JS date constructor --- client/public/lib/me.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/public/lib/me.mjs b/client/public/lib/me.mjs index 768190a..2f9f9b1 100644 --- a/client/public/lib/me.mjs +++ b/client/public/lib/me.mjs @@ -1,5 +1,5 @@ export function age() { - let birthdate = new Date(2002, 8, 29) + let birthdate = new Date("29 August 2002") let now = new Date() let age = now.getFullYear() - birthdate.getFullYear()