Files
Nexus/docs/reports/2026-06-09-operator-timezone-beijing-verification.md
T
Nexus Agent e3efbd4552 feat(timezone): operator schedules and filters use Beijing wall clock.
Cron matching, audit/alert date filters, and schedule UI align on Asia/Shanghai
while JWT/TOTP/heartbeat stay UTC; follow-ups add WS alert timestamps, fixed
install timezone copy, and 422 on invalid date filters.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 05:50:32 +08:00

1.3 KiB
Raw Blame History

运维时区全局北京 — 验证报告(2026-06-09

自动化

检查 结果
bash scripts/local_verify.sh PASS
bash deploy/pre_deploy_check.sh 7/7 PASS
pytest test_operator_tz test_schedule_next_run test_display_time PASS
npm run type-check PASS
cd frontend && npx vite build PASS

API 契约(本地 :8600

创建 cron 0 2 * * * 推送调度:

  • next_run = 2026-06-09 18:00:00UTC naive
  • 换算北京时间 = 2026-06-10 02:00(与「每天 02:00 北京」一致)

脚本:Agent 会话内 httpx 一次性创建/断言/删除(未入仓)。

浏览器 E2EPlaywright,本地 http://127.0.0.1:8600

cd frontend && npx playwright test e2e/pages/schedules-cycle.spec.mjs e2e/pages/schedules-timezone.spec.mjs
用例 结果
E2E-SCH-002 新建调度显示「开始执行周期」 PASS
E2E-SCH-003 对话框显示「时间为北京时间(Asia/Shanghai)」 PASS
E2E-SCH-004 next_run 列显示 2026-06-10 02:00:00(非 UTC 10:00、非裸 ISO Z PASS

新增:frontend/e2e/pages/schedules-timezone.spec.mjs

生产部署

  • 未执行 deploy/deploy-production.sh(需 SSH nexus 与明确批准)。
  • 门控已放行;部署后请人工核对调度列表 next_run