Hiển thị tọa độ và khu vực khi tàu vi phạm

This commit is contained in:
Tran Anh Tuan
2025-12-08 09:31:28 +07:00
parent c47d9ad14c
commit 695066a5e7
11 changed files with 1517 additions and 301 deletions

View File

@@ -41,3 +41,8 @@ export function formatRelativeTime(unixTime: number): string {
if (diffMonths < 12) return `${diffMonths} tháng trước`;
return `${diffYears} năm trước`;
}
export const formatTimestamp = (timestamp?: number): string => {
if (!timestamp) return "N/A";
return dayjs.unix(timestamp).format("DD/MM/YYYY HH:mm:ss");
};