A local-first multi-agent app development platform, built on PenguinHarness
fix(web): the session row's marks line up, and a Chinese date reads 8月30日 (#717)
Yaowei Zheng164301463fa1
diff --git a/changelog/unreleased/2026-09-14-session-row-time-alignment.md b/changelog/unreleased/2026-09-14-session-row-time-alignment.mdnew file mode 100644index 00000000..2da45853--- /dev/null+++ b/changelog/unreleased/2026-09-14-session-row-time-alignment.md@@ -0,0 +1,16 @@+# The session row's marks line up, and a Chinese date reads 8月30日++- **Date:** 2026-09-14+- **Type:** fix+- **Scope:** `web`+- **PR:** [#717](https://github.com/Prism-Shadow/penguin-harness/pull/717)++[中文版](2026-09-14-session-row-time-alignment.zh.md)++The marks right of a session title — the run glyph, the background-task and schedule marks, the approval count — drifted from row to row because the trailing time slot's width followed the time string. The slot now takes a fixed width per interface language, so the marks form one vertical column, and the Chinese month-day is written without spaces.++## Details++- The slot is 4.5rem in Chinese (room for 「12月31日」 and 「59 分钟前」) and 3.5rem in English (room for "Nov 30" at the smallest font tier, where the rem-sized slot is at its narrowest and the 11px time is not), never narrower than the hover pair of archive and more it swaps with; the time is right-aligned in tabular figures.+- `formatMonthDay` writes `8月30日` in Chinese and keeps `Aug 30` in English. It also formats a one-off schedule's date on the scheduled-tasks rows and the version line's "last updated" date, which change the same way.+- The month-day a row falls back to once it is a week old names the reader's own calendar day. It was read off the `...Z` timestamp, so east of UTC a row last active at 07:00 on the 31st read as the 30th, and west of UTC an evening row read as the next day.diff --git a/changelog/unreleased/2026-09-14-session-row-time-alignment.zh.md b/changelog/unreleased/2026-09-14-session-row-time-alignment.zh.mdnew file mode 100644index 00000000..8358aa95--- /dev/null+++ b/changelog/unreleased/2026-09-14-session-row-time-alignment.zh.md@@ -0,0 +1,16 @@+# 会话行的标记纵向对齐,中文日期写作 8月30日++- **Date:** 2026-09-14+- **Type:** fix+- **Scope:** `web`+- **PR:** [#717](https://github.com/Prism-Shadow/penguin-harness/pull/717)++[English](2026-09-14-session-row-time-alignment.md)++会话标题右侧的各枚标记——运行字形、后台任务与定时任务标记、待审批数——此前会随各行时间字串的宽度左右漂移。行尾的时间槽改为按界面语言取固定宽度,标记因此在各行连成一列;中文的月日不再加空格。++## 细节++- 时间槽在中文下宽 4.5rem(放得下「12月31日」与「59 分钟前」)、英文下宽 3.5rem(在最小字号档也放得下「Nov 30」:槽宽按 rem 缩放,其中 11px 的时间文字不缩放),且不窄于它与之切换的归档 / 更多两枚悬停按钮;时间右对齐、用等宽数字。+- `formatMonthDay` 在中文下写作 `8月30日`,英文仍为 `Aug 30`。定时任务行里一次性任务的日期与版本行的「最近更新日期」同源,一并改变。+- 会话行满一周后回落到的月日,取读者本地的日历日期。此前它直接读 `...Z` 时间戳的日期部分:UTC 以东,31 日 07:00 活跃的行会显示成 30 日;UTC 以西,傍晚活跃的行会显示成次日。diff --git a/packages/docs/content/web-app.zh.md b/packages/docs/content/web-app.zh.mdindex c2980561..df485a22 100644--- a/packages/docs/content/web-app.zh.md+++ b/packages/docs/content/web-app.zh.md@@ -101,7 +101,7 @@ Agent 写的是同一个 Workspace,你编辑期间文件可能被改动。每### 定时任务面板-定时任务面板列出绑定到当前对话的定时任务(每次新建 Session 的任务属于 Agent,在其设置页管理),带搜索框与全部 / 生效中 / 已暂停 / 已完成筛选。每行显示状态字形、任务名与一行人话时间表(「每天 08:00 · 下次 明天 08:00」「每 30 分钟」「每周一 09:00」「一次性 · 9 月 3 日 10:00」);owner 可用行上的开关启停任务,在行菜单里编辑或删除。**建议**区列出每日简报、每周回顾、跟进提醒、监控更新四条现成请求,点击即打开 AI 对话框并预填。绑定到对话的定时任务只在本面板创建,面板标题之下另起一行并排两枚按钮——面板宽度可以拖动,按钮若与标题同行,拖窄时会被挤裁。带魔法棒的**用 AI 创建**(所有成员可用)与别处的 AI 创建只有一点不同:它的出口是**在本对话中编辑**,把提示词预填进这段对话自己的输入框,而不是新开一个对话——因为在对话里创建的任务默认就绑定到这段对话;发不发送仍由你决定,按下发送后走的就是手输文字的同一条路。带手形的**手动创建**(仅 owner)打开与设置页相同的表单,目标锁定为本 Session。绑定了**还有下一次触发**的定时任务的对话,在侧栏会话列表的行上带一枚闹钟图标(悬停显示「有待触发的定时任务」):只有图标、没有数量;已停用、已过结束时间、或已经触发过的一次性任务都没有下一次触发,不出现图标。保存或启停一个任务只提示发生了什么——定时任务由调度器按时触发,与对话上下文无关,改完即时生效。列表在面板到前台、窗口重获焦点、有任务触发或排队、对话每轮结束时、可见期间每 30 秒以及每次改动后刷新——会话行上的标记读的是同一份列表,同一次刷新把面板和标记一并更新,二者不会各说各话。+定时任务面板列出绑定到当前对话的定时任务(每次新建 Session 的任务属于 Agent,在其设置页管理),带搜索框与全部 / 生效中 / 已暂停 / 已完成筛选。每行显示状态字形、任务名与一行人话时间表(「每天 08:00 · 下次 明天 08:00」「每 30 分钟」「每周一 09:00」「一次性 · 9月3日 10:00」);owner 可用行上的开关启停任务,在行菜单里编辑或删除。**建议**区列出每日简报、每周回顾、跟进提醒、监控更新四条现成请求,点击即打开 AI 对话框并预填。绑定到对话的定时任务只在本面板创建,面板标题之下另起一行并排两枚按钮——面板宽度可以拖动,按钮若与标题同行,拖窄时会被挤裁。带魔法棒的**用 AI 创建**(所有成员可用)与别处的 AI 创建只有一点不同:它的出口是**在本对话中编辑**,把提示词预填进这段对话自己的输入框,而不是新开一个对话——因为在对话里创建的任务默认就绑定到这段对话;发不发送仍由你决定,按下发送后走的就是手输文字的同一条路。带手形的**手动创建**(仅 owner)打开与设置页相同的表单,目标锁定为本 Session。绑定了**还有下一次触发**的定时任务的对话,在侧栏会话列表的行上带一枚闹钟图标(悬停显示「有待触发的定时任务」):只有图标、没有数量;已停用、已过结束时间、或已经触发过的一次性任务都没有下一次触发,不出现图标。保存或启停一个任务只提示发生了什么——定时任务由调度器按时触发,与对话上下文无关,改完即时生效。列表在面板到前台、窗口重获焦点、有任务触发或排队、对话每轮结束时、可见期间每 30 秒以及每次改动后刷新——会话行上的标记读的是同一份列表,同一次刷新把面板和标记一并更新,二者不会各说各话。## 用 AI 创建@@ -182,7 +182,7 @@ Memory 标签页的开关拨动即写入,不参与标签页的保存按钮,## 版本与更新-更新的交互和常见的应用更新器一样,集中在一个弹窗里。两个入口都打开它:侧边栏用户菜单里紧贴「系统设置」下方的那一行,以及新对话页版本行上的「有新版本可用」上标(版本行形如「vX.Y.Z · 最近更新日期 7 月 26 日」——日期由发布流程在构建时打入,直接显示、无需联网;开发构建以及打入机制之前的发布版,v0.1.2 及以前,没有日期)。那一行会说明进行到哪一步——「检查更新」「检查中…」「新版本 vX 可用」「正在下载 vX 42%」「重启以更新到 vX」——右侧以浅色显示当前运行版本,任何状态点击都打开弹窗。+更新的交互和常见的应用更新器一样,集中在一个弹窗里。两个入口都打开它:侧边栏用户菜单里紧贴「系统设置」下方的那一行,以及新对话页版本行上的「有新版本可用」上标(版本行形如「vX.Y.Z · 最近更新日期 7月26日」——日期由发布流程在构建时打入,直接显示、无需联网;开发构建以及打入机制之前的发布版,v0.1.2 及以前,没有日期)。那一行会说明进行到哪一步——「检查更新」「检查中…」「新版本 vX 可用」「正在下载 vX 42%」「重启以更新到 vX」——右侧以浅色显示当前运行版本,任何状态点击都打开弹窗。弹窗按步骤走完更新:在一无所知时打开会先检查(应用每次加载也会向 GitHub 查一次,手动检查则绕过缓存结果);查到新版本时给出更新说明链接和「下载并更新」按钮,按下之前不会下载任何东西;下载中显示进度条,「放到后台」只是关掉弹窗、不取消下载——那一行继续显示百分比,下载就绪后用户按钮上出现圆点并弹出提示;最后「重启并更新」完成整个过程。在服务器上,下载就是后台运行的 `penguin update`(数据目录不受影响),进度条读的是安装器自己的进度;当服务由 `penguin web` 或 `penguin server` 托管时,重启是真实的——服务在新版本上回来,页面自动刷新;用其他方式启动的服务则被告知需要手动重启。非管理员可以看更新说明,但不能执行更新。下载失败会显示更新命令自己的输出并提供重试;无法自更新的安装方式(源码运行、无法识别的目录布局、Windows)会说明原因。设置 `PENGUIN_UPDATE_CHECK=off` 可完全关闭新版本检查——见[配置参考](/configuration)。diff --git a/packages/web/src/components/layout/sidebar.tsx b/packages/web/src/components/layout/sidebar.tsxindex f9df9f67..288691fe 100644--- a/packages/web/src/components/layout/sidebar.tsx+++ b/packages/web/src/components/layout/sidebar.tsx@@ -1275,6 +1275,7 @@ export function Sidebar({// "active right now"). CLI-adopted and subagent rows are not// driven by this server, so theirs stays at createdAt.lastActive={formatRelativeShort(s.lastActiveAt, locale)}+ locale={locale}{...(withAgentHint ? { agentHint: agentNameById.get(s.agentId) ?? s.agentId } : {})}{...drag}onOpen={openSession}@@ -2571,6 +2572,7 @@ function SessionRow({pinned,canPin = false,lastActive,+ locale,agentHint,draggable = false,dropEdge = null,@@ -2600,6 +2602,8 @@ function SessionRow({canPin?: boolean;/** Preformatted compact last-active time ("" hides the slot's resting text). */lastActive: string;+ /** Interface language: decides the fixed width the time slot reserves (see the slot's comment). */+ locale: "zh" | "en";/** Agent display name; when set (workspace mode) a small avatar keeps the Agent context visible on the row. */agentHint?: string;/** Manual sort: the row can be drag-reordered (the sidebar wires the handlers below). */@@ -2771,12 +2775,24 @@ function SessionRow({NOT a whole-slot overlay: the slot's width rides the time string (2 分钟前 vs31 分钟前), and slot-centered glyphs landed at a different x per row, so theicons never formed a vertical column (the user saw them shift with the time's- character count). Right-anchored, every row's icons share one x. min-w-12- reserves the pair's own width, so on a row with no time they still don't- overhang the title. The swap stays a pure opacity handoff: the time hides on- row hover (group-hover) and while a button holds focus (peer-focus-within; the- group precedes the time span so the peer combinator can reach it). */}- <div className="relative flex h-6 min-w-12 shrink-0 items-center justify-end">+ character count). Right-anchored, every row's icons share one x. The slot's+ width is FIXED per language rather than riding the time string: the marks that+ end the title button (glyph, background, schedule, approvals) sit against this+ slot, so a slot that grew with 「31 分钟前」 and shrank with 「刚刚」 moved them+ row by row. Sized for the widest string each language produces — 「12月31日」+ and 「59 分钟前」 in zh, "Nov 30" in en — measured at the SMALLEST font tier,+ which is the tight one: the slot is in rem and shrinks with the root font,+ while the time inside it is a fixed 11px and does not. Never below the hover+ pair's own width (two w-6 buttons), so on a row with no time the buttons+ still don't overhang the title.+ The swap stays a pure opacity handoff: the time hides on row hover+ (group-hover) and while a button holds focus (peer-focus-within; the group+ precedes the time span so the peer combinator can reach it). */}+ <div+ className={`relative flex h-6 shrink-0 items-center justify-end ${+ locale === "zh" ? "w-[4.5rem]" : "w-14"+ }`}+ >{/* No hover pill on these (a fill as wide as the date read ugly); feedback isthe glyph color deepening — red for delete. */}<div className="peer absolute right-0 top-1/2 flex -translate-y-1/2 items-center">@@ -2790,7 +2806,7 @@ function SessionRow({{lastActive !== "" && (<spanaria-hidden- className="pointer-events-none px-1 text-[11px] text-gray-400 transition-opacity duration-150 group-hover:opacity-0 peer-focus-within:opacity-0 dark:text-gray-500"+ className="pointer-events-none whitespace-nowrap px-1 text-right text-[11px] tabular-nums text-gray-400 transition-opacity duration-150 group-hover:opacity-0 peer-focus-within:opacity-0 dark:text-gray-500">{lastActive}</span>diff --git a/packages/web/src/features/schedules/schedule-describe.ts b/packages/web/src/features/schedules/schedule-describe.tsindex 2f30febf..27165e3d 100644--- a/packages/web/src/features/schedules/schedule-describe.ts+++ b/packages/web/src/features/schedules/schedule-describe.ts@@ -9,7 +9,7 @@*/import type { ScheduleItem } from "@prismshadow/penguin-server/api";import { S } from "../../lib/strings";-import { formatMonthDay } from "../../lib/format";+import { formatMonthDay, localYmd } from "../../lib/format";import type { Locale } from "../../state/locale";/** The fields the line reads; the rest of ScheduleItem does not change it. */@@ -37,14 +37,6 @@ function clockTime(d: Date): string {return `${pad2(d.getHours())}:${pad2(d.getMinutes())}`;}-/**- * The local calendar date as `yyyy-mm-dd`, the shape formatMonthDay reads: it takes the date- * part of its input verbatim, so the zone conversion has to happen here, on the Date.- */-function localYmd(d: Date): string {- return `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())}`;-}-/** 周一 / Monday: the short form in Chinese already carries the "week" character the sentence needs. */function weekdayName(d: Date, locale: Locale): string {return new Intl.DateTimeFormat(locale === "zh" ? "zh-CN" : "en-US", {diff --git a/packages/web/src/lib/format.ts b/packages/web/src/lib/format.tsindex a7f56df1..16c4b11a 100644--- a/packages/web/src/lib/format.ts+++ b/packages/web/src/lib/format.ts@@ -166,6 +166,15 @@ function pad2(n: number): string {return n < 10 ? `0${n}` : `${n}`;}+/**+ * A Date as the viewer's local calendar date, `yyyy-mm-dd` — the shape `formatMonthDay`+ * reads. It takes the date part of its input verbatim, so an instant has to be converted+ * here, on the Date; handing it a `...Z` timestamp would name the UTC day instead.+ */+export function localYmd(d: Date): string {+ return `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())}`;+}+/** ISO timestamp → local `yyyy-MM-dd HH:mm` display; returns the input unchanged if parsing fails. */export function formatDateTime(iso: string): string {const d = new Date(iso);@@ -191,7 +200,7 @@ const EN_MONTHS = [/*** `yyyy-mm-dd` (or a full ISO timestamp — only the date part is read) → localized- * month + day, no year: en `Jul 26`, zh `7 月 26 日` (the version footer's "last+ * month + day, no year: en `Jul 26`, zh `7月26日` (the version footer's "last* updated" date, product-specified wording — the zh form keeps the CJK/numeral* spacing the owner asked for, which `Intl` would drop). The fields are read* straight from the string rather than via `new Date()` + local-zone formatting:@@ -206,7 +215,9 @@ export function formatMonthDay(iso: string, locale: "zh" | "en"): string {const month = Number(m[1]);const day = Number(m[2]);if (month < 1 || month > 12 || day < 1 || day > 31) return iso;- return locale === "en" ? `${EN_MONTHS[month - 1]} ${day}` : `${month} 月 ${day} 日`;+ // zh writes the date without spaces (8月30日), the way the message-time format does;+ // en keeps the abbreviated month (Aug 30).+ return locale === "en" ? `${EN_MONTHS[month - 1]} ${day}` : `${month}月${day}日`;}/**@@ -272,14 +283,17 @@ export function formatRelativeDate(iso: string, locale: "zh" | "en"): string {* per-conversation time): under a minute zh 「刚刚」 / en "now", then minute / hour /* day steps — zh keeps the dictionary wording (`5 分钟前`), en stays ultra-short* (`5m`, `3h`, `2d`) per the CLI-style abbreviation register. A week or older — or a- * future time (clock skew) — falls back to the absolute month-day (formatMonthDay);- * an unparsable value yields "" so callers hide the slot rather than show garbage.+ * future time (clock skew) — falls back to the absolute month-day of the viewer's own+ * calendar day (formatMonthDay over localYmd, not the raw timestamp: the instant is a+ * `...Z` stamp, and reading its date part would name the UTC day — a row last active at+ * 07:00 on the 31st in UTC+8 would read as the 30th); an unparsable value yields "" so+ * callers hide the slot rather than show garbage.*/export function formatRelativeShort(iso: string, locale: "zh" | "en"): string {const d = new Date(iso);if (Number.isNaN(d.getTime())) return "";const diffMs = Date.now() - d.getTime();- if (diffMs < 0) return formatMonthDay(iso, locale);+ if (diffMs < 0) return formatMonthDay(localYmd(d), locale);const min = Math.floor(diffMs / 60_000);if (min < 1) return locale === "en" ? "now" : "刚刚";if (min < 60) return locale === "en" ? `${min}m` : `${min} 分钟前`;@@ -287,7 +301,7 @@ export function formatRelativeShort(iso: string, locale: "zh" | "en"): string {if (hours < 24) return locale === "en" ? `${hours}h` : `${hours} 小时前`;const days = Math.floor(hours / 24);if (days < 7) return locale === "en" ? `${days}d` : `${days} 天前`;- return formatMonthDay(iso, locale);+ return formatMonthDay(localYmd(d), locale);}/** ISO timestamp → local `HH:mm:ss` (inline display in the Trace timeline); returns the input unchanged if parsing fails. */diff --git a/packages/web/src/lib/strings-en.ts b/packages/web/src/lib/strings-en.tsindex 4e4391b9..3a6d7cb4 100644--- a/packages/web/src/lib/strings-en.ts+++ b/packages/web/src/lib/strings-en.ts@@ -1259,7 +1259,7 @@ export const en: Strings = {next: (when: string): string => `Next: ${when}`,today: (time: string): string => `today ${time}`,tomorrow: (time: string): string => `tomorrow ${time}`,- /** `monthDay` is formatMonthDay's output (9 月 3 日 / Sep 3). */+ /** `monthDay` is formatMonthDay's output (9月3日 / Sep 3). */onDate: (monthDay: string, time: string): string => `${monthDay}, ${time}`,onDateWithYear: (year: number, monthDay: string, time: string): string =>`${monthDay}, ${year}, ${time}`,diff --git a/packages/web/src/lib/strings.ts b/packages/web/src/lib/strings.tsindex ca4147bb..3af6b5f3 100644--- a/packages/web/src/lib/strings.ts+++ b/packages/web/src/lib/strings.ts@@ -1243,7 +1243,7 @@ export const zh = {next: (when: string): string => `下次 ${when}`,today: (time: string): string => `今天 ${time}`,tomorrow: (time: string): string => `明天 ${time}`,- /** `monthDay` is formatMonthDay's output (9 月 3 日 / Sep 3). */+ /** `monthDay` is formatMonthDay's output (9月3日 / Sep 3). */onDate: (monthDay: string, time: string): string => `${monthDay} ${time}`,onDateWithYear: (year: number, monthDay: string, time: string): string =>`${year} 年 ${monthDay} ${time}`,diff --git a/packages/web/test/format.test.ts b/packages/web/test/format.test.tsindex fbf98b52..57f34791 100644--- a/packages/web/test/format.test.ts+++ b/packages/web/test/format.test.ts@@ -265,6 +265,22 @@ describe("formatRelativeDays", () => {});});+/**+ * Run `fn` as a reader in `tz`. Node re-reads `process.env.TZ` per call, so this pins the+ * zone a date assertion depends on instead of inheriting the test box's — the ambient zone+ * would make a local-vs-UTC bug invisible on a UTC runner and loud everywhere else.+ */+function withTimeZone(tz: string, fn: () => void): void {+ const real = process.env.TZ;+ process.env.TZ = tz;+ try {+ fn();+ } finally {+ if (real === undefined) delete process.env.TZ;+ else process.env.TZ = real;+ }+}+describe("formatRelativeShort", () => {// Fix "now" (the sidebar row's compact last-active time is measured from it).beforeEach(() => {@@ -292,9 +308,21 @@ describe("formatRelativeShort", () => {});it("a week or older — and future times (clock skew) — fall back to the absolute month-day", () => {- expect(formatRelativeShort("2026-07-01T00:00:00.000Z", "zh")).toBe("7 月 1 日");- expect(formatRelativeShort("2026-01-02T00:00:00.000Z", "en")).toBe("Jan 2");- expect(formatRelativeShort("2026-07-20T00:00:00.000Z", "en")).toBe("Jul 20");+ expect(formatRelativeShort(at(6, 1, 0, 0), "zh")).toBe("7月1日");+ expect(formatRelativeShort(at(0, 2, 0, 0), "en")).toBe("Jan 2");+ expect(formatRelativeShort(at(6, 20, 0, 0), "en")).toBe("Jul 20");+ });++ it("that month-day is the reader's own calendar day, not the timestamp's UTC day", () => {+ // One instant, two readers. Its UTC day (the 5th) is the Shanghai reader's 6th, and+ // reading the date straight off the `...Z` string would hand both of them the 5th.+ const iso = "2026-06-05T23:00:00.000Z";+ withTimeZone("Asia/Shanghai", () => {+ expect(formatRelativeShort(iso, "zh")).toBe("6月6日");+ });+ withTimeZone("America/New_York", () => {+ expect(formatRelativeShort(iso, "en")).toBe("Jun 5");+ });});it("unparsable input yields the empty string (the row hides the slot instead of showing garbage)", () => {@@ -344,14 +372,14 @@ describe("formatRelativeDate (semantic update time on Skill cards)", () => {describe("formatMonthDay (version-line 'last updated' date)", () => {it("formats a date-only string per locale, matching the owner-specified wording", () => {expect(formatMonthDay("2026-07-26", "en")).toBe("Jul 26");- expect(formatMonthDay("2026-07-26", "zh")).toBe("7 月 26 日");+ expect(formatMonthDay("2026-07-26", "zh")).toBe("7月26日");expect(formatMonthDay("2026-01-05", "en")).toBe("Jan 5");- expect(formatMonthDay("2026-12-31", "zh")).toBe("12 月 31 日");+ expect(formatMonthDay("2026-12-31", "zh")).toBe("12月31日");});it("reads only the date part of a full ISO timestamp — no timezone round-trip that could shift a day", () => {expect(formatMonthDay("2026-07-01T00:00:00Z", "en")).toBe("Jul 1");- expect(formatMonthDay("2026-05-05T12:00:00Z", "zh")).toBe("5 月 5 日");+ expect(formatMonthDay("2026-05-05T12:00:00Z", "zh")).toBe("5月5日");});it("returns unparsable or out-of-range input unchanged", () => {diff --git a/packages/web/test/schedule-describe.test.ts b/packages/web/test/schedule-describe.test.tsindex 22fdcdcd..199a27d7 100644--- a/packages/web/test/schedule-describe.test.ts+++ b/packages/web/test/schedule-describe.test.ts@@ -42,8 +42,8 @@ describe("describeInstant", () => {it("names today and tomorrow, then dates, adding the year only when it differs", () => {expect(describeInstant(local(2026, 9, 2, 8, 0), "zh", NOW)).toBe("今天 08:00");expect(describeInstant(local(2026, 9, 3, 10, 0), "zh", NOW)).toBe("明天 10:00");- expect(describeInstant(local(2026, 9, 5, 10, 0), "zh", NOW)).toBe("9 月 5 日 10:00");- expect(describeInstant(local(2027, 1, 3, 10, 0), "zh", NOW)).toBe("2027 年 1 月 3 日 10:00");+ expect(describeInstant(local(2026, 9, 5, 10, 0), "zh", NOW)).toBe("9月5日 10:00");+ expect(describeInstant(local(2027, 1, 3, 10, 0), "zh", NOW)).toBe("2027 年 1月3日 10:00");setActiveStrings(en);expect(describeInstant(local(2026, 9, 3, 10, 0), "en", NOW)).toBe("tomorrow 10:00");expect(describeInstant(local(2026, 9, 5, 10, 0), "en", NOW)).toBe("Sep 5, 10:00");@@ -120,7 +120,7 @@ describe("describeSchedule", () => {"已过期 · 每天 08:00",);expect(describeSchedule({ status: "done", startAt: local(2026, 9, 1, 10, 0) }, "zh", NOW)).toBe(- "已完成 · 一次性 · 9 月 1 日 10:00",+ "已完成 · 一次性 · 9月1日 10:00",);expect(describeSchedule({ ...daily, status: "missed" }, "zh", NOW)).toBe("已错过 · 每天 08:00");expect(