Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
e617b45b
Unverified
Commit
e617b45b
authored
Feb 07, 2026
by
Wesley Liddick
Committed by
GitHub
Feb 07, 2026
Browse files
Merge pull request #508 from touwaeriol/pr/format-time-seconds
feat(frontend): show seconds in rate limit time display
parents
20283bb5
8826705e
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/utils/format.ts
View file @
e617b45b
...
@@ -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
})
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment