Repository navigation
fix(web): 记忆保留期按本地日历日结束 - #492
Open
Qiyuanqiii wants to merge 4 commits into
Open
Qiyuanqiii wants to merge 4 commits into
Qiyuanqiii wants to merge 4 commits into
Conversation
Qiyuanqiii
added a commit
that referenced
this pull request
Oct 27, 2026
Qiyuanqiii
force-pushed
the
Qiyuanqiii/memory-retention-local-end-of-day
branch
from
October 27, 2026 19:21
7c6ab5f to
a148aba
Compare
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
记忆的“保留至”是本地日期。原实现把所选日期当成 UTC 日终保存,在不同时区会提前或延后到期;编辑时又直接截取 UTC 日期,可能与列表展示的本地日期相差一天。
创建和编辑改为保存所选本地日期的最后一毫秒;编辑框从保存的时间按本地日期回填。已有记录不会自动迁移,编辑保存时会按选中的日期重新计算日终。
页面截图
同一条记忆的原始到期时间为
2030-03-14T16:30:00Z,在香港是 3 月 15 日 00:30。下图来自同一隔离数据目录中的真实页面:修复前编辑框回填 3 月 14 日,修复后回填 3 月 15 日。查看验收记录。验证
go run ./cmd/protocolregistry -check通过。原 CI 失败日志指向过期的协议登记文档,已同步主线。430854f5的 CI:Go checks、Go control plane、TypeScript console 与任务选择均通过;其他任务按变更范围跳过。