Hiển thị tọa độ và khu vực khi tàu vi phạm
This commit is contained in:
@@ -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");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user