fix: 日志统计固定使用中国时区 #1105

Merged
renshen merged 1 commits from fix/renshen-worklog-china-timezone into main 2026-11-11 18:56:54 +08:00
Collaborator

根因

  • 公司 1 未设置 localisation.timezone,Akaunting 网页请求回退为 Europe/London。
  • 命令行使用 Asia/Shanghai,导致同一份数据命令行算 20 分,页面在伦敦时间上午只算 10 分。

修复

  • 日志统计、提交时间归档、扣分截止时间和日志同步统一使用 dingtalk.worklog.timezone,默认 Asia/Shanghai。
  • 默认“当前统计日”改为最近一个已经完成次日 12:00 截止的日期。

验证

  • 回归测试覆盖公司时区为 Europe/London、中国时间 18:51 时仍必须计入 11 月 10 日。
  • 相关测试 14 项通过,105 个断言。
## 根因 - 公司 1 未设置 `localisation.timezone`,Akaunting 网页请求回退为 `Europe/London`。 - 命令行使用 `Asia/Shanghai`,导致同一份数据命令行算 20 分,页面在伦敦时间上午只算 10 分。 ## 修复 - 日志统计、提交时间归档、扣分截止时间和日志同步统一使用 `dingtalk.worklog.timezone`,默认 `Asia/Shanghai`。 - 默认“当前统计日”改为最近一个已经完成次日 12:00 截止的日期。 ## 验证 - 回归测试覆盖公司时区为 `Europe/London`、中国时间 18:51 时仍必须计入 11 月 10 日。 - 相关测试 14 项通过,105 个断言。
renshen added 1 commit 2026-11-11 18:56:43 +08:00
renshen merged commit d6fe74ad1e into main 2026-11-11 18:56:54 +08:00
renshen deleted branch fix/renshen-worklog-china-timezone 2026-11-11 18:56:54 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WuYongJie/CaiWuXiTong#1105
No description provided.