Timestamp is now formatted properly

This commit is contained in:
joschuatonn
2024-06-10 12:25:24 +02:00
parent df991858b8
commit c2c1106cfd

View File

@@ -12,7 +12,7 @@
})
const date = new Date(Number(props.timestamp));
const timestampFormatted = date.getDay() + "." + date.getMonth() + "." + date.getFullYear() + ", " + date.getHours() + ":" + (date.getMinutes() + '').padStart(2, '0');
const timestampFormatted = date.toLocaleString('de-DE');
</script>
<template>