export const convertDate = (t) => { if (typeof t === 'number') { t = String(t).length === 13 ? t : t * 1000; } else if (typeof t === 'string') { t = t.replace(/\s+/g, 'T') + '+08:00'; } return new Date(t); };