From 4b03a6f5ed507e263261b590eb6e60c9938530a5 Mon Sep 17 00:00:00 2001 From: Igor Khramtsov Date: Sat, 19 Oct 2024 17:38:05 +0400 Subject: [PATCH] fix: revert debug change for getting local day start --- src/utils/dateUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dateUtils.ts b/src/utils/dateUtils.ts index 74c0903..67cf361 100644 --- a/src/utils/dateUtils.ts +++ b/src/utils/dateUtils.ts @@ -1,7 +1,7 @@ export const getLocalDayStart = (): Date => { const now = new Date() // Set the date to local midnight - return new Date(now.getFullYear(), now.getMonth(), now.getDate() - 2) + return new Date(now.getFullYear(), now.getMonth(), now.getDate()) } export const getLocalStartOfDayInUTCString = (): string => {