fix(Calendar): fix timezone

This commit is contained in:
nemo-shen 2021-12-14 00:24:08 +08:00 committed by neverland
parent d4f4d75fd9
commit 3b120e3c5b

View File

@ -6,9 +6,10 @@ function getMonths(minDate, maxDate) {
var cursor = getDate(minDate);
cursor.setDate(1);
cursor.setMinutes(cursor.getMinutes() - cursor.getTimezoneOffset())
do {
months.push(cursor.valueOf());
months.push(cursor.getTime());
cursor.setMonth(cursor.getMonth() + 1);
} while (utils.compareMonth(cursor, getDate(maxDate)) !== 1);