fix 打开 ota 授权
Docker Build and Push / build-image (push) Successful in 2m51s

This commit is contained in:
cheney
2026-08-07 16:24:10 +08:00
parent a5bc8ef1f1
commit 22a36fb213
5 changed files with 671 additions and 19 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ function scheduleOilHistory() {
const list = sched.schedule || []
// 待定 且 日期 <= 昨天 (用 Asia/Shanghai 时区推导, 与 cron 触发时区对齐)
const todayStr = new Date().toLocaleDateString('en-CA', { timeZone: 'Asia/Shanghai' })
const today = new Date(todayStr + 'T00:00:00')
const today = new Date(todayStr + 'T00:00:00+08:00')
const yesterdayMs = today.getTime() - 86400000
const pendingPast = list.filter((it) => {
if (it.status !== '待定') return false