This commit is contained in:
Fine 2025-05-16 17:14:08 +08:00
parent c38feeb9d3
commit a751f972b8

View File

@ -248,8 +248,8 @@ limitations under the License. -->
if (!day) {
return appStore.setMaxRange([]);
}
const gap = dayToMS(day + 1) + hour * 60 * 60 * 1000 + minute * 60 * 1000;
const dates: Date[] = [new Date(new Date().getTime() - gap), new Date()];
const gap = Math.max(dayToMS(day), hour * 60 * 60 * 1000, minute * 60 * 1000);
const dates: Date[] = [new Date(new Date().getTime() - gap - dayToMS(1)), new Date()];
appStore.setMaxRange(dates);
}