function timestampToTime(timestamp:number) {
if (timestamp === 0 || timestamp == null) {
const date = new Date(timestamp * 1000)
const Y = date.getFullYear() + '-'
const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
const D = date.getDate() < 10 ? '0' + date.getDate() + ' ' : date.getDate() + ' '
const H = date.getHours() + ':'
const M2 = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':'
const S = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
return Y + M + D + H + M2 + S