From bf6deb6629a8426b80f310736dbe6812d2547e53 Mon Sep 17 00:00:00 2001 From: Alberto Defendi <1369-ahl-berto@users.noreply.gitlab.inf.unibz.it> Date: Mon, 21 Jun 2021 15:46:21 +0200 Subject: [PATCH] Remove sum by 1. --- src/api/util/formatDate.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/util/formatDate.ts b/src/api/util/formatDate.ts index 7081066..8ead4cc 100644 --- a/src/api/util/formatDate.ts +++ b/src/api/util/formatDate.ts @@ -5,7 +5,5 @@ */ export const formatDate = (date: Date): string => date !== null && date !== undefined - ? `${date.getUTCFullYear()}-${date.getUTCMonth() + 1}-${ - date.getUTCDate() + 1 - }` + ? `${date.getUTCFullYear()}-${date.getUTCMonth() + 1}-${date.getUTCDate()}` : ''; -- GitLab