Files
Nexus/docs/changelog/2026-06-04-ls-timezone-parse-fix.md
T
2026-07-08 22:31:31 +08:00

713 B
Raw Blame History

2026-06-04 — 文件列表 ls 时区字段解析修复

摘要

修复 GNU ls -lalong-iso 输出中带 +0800 时区时,文件名被误解析为 +0800 的 bug。

动机

Ubuntu 默认 ls 常输出 2026-06-01 12:00:00 +0800 filename,原逻辑将 parts[7] 当作文件名,文件管理页缺文件或显示异常。

涉及文件

  • server/utils/unix_ls.py
  • tests/test_file_permissions.py(原有用例现已通过)
  • tests/test_security_unit.pytests/test_step0_infrastructure.py(中间件测试对齐纯 ASGI

验证

pytest tests/test_file_permissions.py -q
pytest tests/ -q   # 135 passed, 1 skipped 级(CDN 预览 HTML 见审计报告)