fix(frontend): change time format to 12-hour with AM/PM

- Change time locale from zh-CN to en-US to properly display AM/PM
- Increase letter-spacing for better readability (0.08em → 0.12em)
- Update all time displays to use 12-hour format consistently
This commit is contained in:
2026-04-06 22:21:54 +08:00
parent 712d9e1652
commit 3cf8762b96
3 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ export function useClientTime() {
}
function formatClientClock(date: Date) {
return date.toLocaleTimeString('zh-CN', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' })
return date.toLocaleTimeString('en-US', { hour12: true, hour: '2-digit', minute: '2-digit', second: '2-digit' })
}
function weatherCodeLabel(code: number | null | undefined) {