Timestamp is now formatted properly
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
const date = new Date(Number(props.timestamp));
|
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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user