]> acesimba.cloud Git - words.git/commit
fix: 时区bug-StudyMode/TestMode改用中国时间; 修正8/17误记到前一天的记录
authorroot <root@localhost.localdomain>
Tue, 18 Aug 2026 11:58:32 +0000 (19:58 +0800)
committerroot <root@localhost.localdomain>
Tue, 18 Aug 2026 11:58:32 +0000 (19:58 +0800)
commitcb2476aaed7607f18f5152f210ca367117f598c4
treea18b486f36c81850212726cc4db1c97ae92ecee7
parent3f0ec3bbf262e46a6875c83747bf409d9e340f6f
fix: 时区bug-StudyMode/TestMode改用中国时间; 修正8/17误记到前一天的记录

- 新增 localTimestamp() 生成 Asia/Shanghai(UTC+8) 时间戳, 替代 toISOString()(UTC)
  避免凌晨学习被记到前一天
- StudyMode/TestMode 完成学习时写入中国本地时间
- 修正 study_logs 中 id 395-398 因 UTC completed_at 被错误记到 2026-08-17 的问题
  (实际为北京时间 8/18 早上 7点多, created_at UTC 23:39-23:55), 改为 2026-08-18
- 其他 100+ 历史误记记录按用户要求保持不变
backend/db/bcd.db
frontend/src/api.js
frontend/src/components/StudyMode.js
frontend/src/components/TestMode.js