From 8a534160f0ac7131205b165581b4af49e3c3385a Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 26 May 2026 08:11:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20MADIS=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=EF=BC=9AHH:MM=20=E6=97=B6=E9=97=B4=E6=88=B3=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=20ISO=20=E6=A0=BC=E5=BC=8F=EF=BC=8C=E9=81=BF=E5=85=8D=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=9B=9E=E9=80=80=E5=AF=BC=E8=87=B4=20slot=20?= =?UTF-8?q?=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit normObs 对 HH:MM 格式调用 getCityLocalUtcTimestamp 时未传 referenceLocalDate, 导致取当前真实日期而非测试数据日期,所有观测挤到最后一个 slot。 --- .../temperatureDefaultVisibilityPolicy.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/components/dashboard/scan-terminal/__tests__/temperatureDefaultVisibilityPolicy.test.ts b/frontend/components/dashboard/scan-terminal/__tests__/temperatureDefaultVisibilityPolicy.test.ts index 73f1e2d0..ade5d163 100644 --- a/frontend/components/dashboard/scan-terminal/__tests__/temperatureDefaultVisibilityPolicy.test.ts +++ b/frontend/components/dashboard/scan-terminal/__tests__/temperatureDefaultVisibilityPolicy.test.ts @@ -270,12 +270,12 @@ export function runTests() { source_label: "NOAA MADIS", }, airportPrimaryTodayObs: [ - ["16:51", 73.9], - ["15:51", 73], - ["15:47", 71.6], - ["15:44", 72], + ["2026-05-25T16:51", 73.9], + ["2026-05-25T15:51", 73], + ["2026-05-25T15:47", 71.6], + ["2026-05-25T15:44", 72], ], - metarTodayObs: [{ time: "16:51", temp: 73.9 }], + metarTodayObs: [{ time: "2026-05-25T16:51", temp: 73.9 }], } as any, "1D", );