export function formatTime(timestamp: number): string { let date = new Date(timestamp*1000); let year = date.getFullYear(); let month = date.getMonth() + 1; let day = date.getDate(); let time = date.toTimeString().split(' ')[0]; console.log(date.toTimeString()); let formattedTime = `${time}, ${day}/${month}/${year}` return formattedTime; }