Unverified Commit e617b45b authored by Wesley Liddick's avatar Wesley Liddick Committed by GitHub
Browse files

Merge pull request #508 from touwaeriol/pr/format-time-seconds

feat(frontend): show seconds in rate limit time display
parents 20283bb5 8826705e
...@@ -204,7 +204,7 @@ export function formatReasoningEffort(effort: string | null | undefined): string ...@@ -204,7 +204,7 @@ export function formatReasoningEffort(effort: string | null | undefined): string
} }
/** /**
* 格式化时间(显示时分) * 格式化时间(显示时分
* @param date 日期字符串或 Date 对象 * @param date 日期字符串或 Date 对象
* @returns 格式化后的时间字符串 * @returns 格式化后的时间字符串
*/ */
...@@ -212,6 +212,7 @@ export function formatTime(date: string | Date | null | undefined): string { ...@@ -212,6 +212,7 @@ export function formatTime(date: string | Date | null | undefined): string {
return formatDate(date, { return formatDate(date, {
hour: '2-digit', hour: '2-digit',
minute: '2-digit', minute: '2-digit',
second: '2-digit',
hour12: false hour12: false
}) })
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment