From 0f8a17b630329251daad3c18c4411b6ab4dfde92 Mon Sep 17 00:00:00 2001 From: Josepablo C Date: Tue, 29 Jul 2025 20:35:39 -0600 Subject: [PATCH] fix: Set normalized date to UTC --- v1/src/lib/Misc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v1/src/lib/Misc.js b/v1/src/lib/Misc.js index dd2f724..eae701d 100644 --- a/v1/src/lib/Misc.js +++ b/v1/src/lib/Misc.js @@ -49,7 +49,8 @@ function normalizeDate( date ){ let monthIndex = in_date.getMonth(); let day = in_date.getDate(); // new Date(year, monthIndex, day, hours, minutes, seconds, milliseconds); - return new Date( year, monthIndex, day, 0, 0, 0, 0 ); + // return new Date( year, monthIndex, day, 0, 0, 0, 0 ); + return new Date( Date.UTC( year, monthIndex, day, 0, 0, 0, 0 ) ); } function getPagination( query ){