This commit is contained in:
18631081161 2026-01-16 15:42:47 +08:00
parent f63eb4ad70
commit 9595119163

View File

@ -437,7 +437,9 @@ const filteredAllocations = computed(() => {
function formatDate(dateStr: string): string {
if (!dateStr) return '-'
const date = new Date(dateStr)
// ZUTC
const cleanDateStr = dateStr.replace('Z', '').replace(/\+.*$/, '').replace(/-\d{2}:\d{2}$/, '')
const date = new Date(cleanDateStr)
const year = date.getFullYear()
const month = String(date.getMonth() + 1).padStart(2, '0')
const day = String(date.getDate()).padStart(2, '0')