From 8826705e71c1b8b91194bd0178e631919dc53581 Mon Sep 17 00:00:00 2001 From: erio Date: Sat, 7 Feb 2026 11:59:27 +0800 Subject: [PATCH] feat(frontend): show seconds in rate limit time display Change formatTime() to include seconds (HH:MM:SS) instead of only hours and minutes (HH:MM). This gives users more precise information about when rate limits will reset. --- frontend/src/utils/format.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/format.ts b/frontend/src/utils/format.ts index f21dd0f6..8ff795cc 100644 --- a/frontend/src/utils/format.ts +++ b/frontend/src/utils/format.ts @@ -204,7 +204,7 @@ export function formatReasoningEffort(effort: string | null | undefined): string } /** - * 格式化时间(只显示时分) + * 格式化时间(显示时分秒) * @param date 日期字符串或 Date 对象 * @returns 格式化后的时间字符串 */ @@ -212,6 +212,7 @@ export function formatTime(date: string | Date | null | undefined): string { return formatDate(date, { hour: '2-digit', minute: '2-digit', + second: '2-digit', hour12: false }) }