fix: Set normalized date to UTC

This commit is contained in:
Josepablo C
2025-07-29 20:35:39 -06:00
parent 95704d3556
commit 0f8a17b630

View File

@@ -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 ){