fix: Set normalized date to UTC
This commit is contained in:
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user