Switched to formatnumber func

This commit is contained in:
2025-09-01 12:21:58 +02:00
parent 32b4f2cebc
commit d58856ccd1
7 changed files with 72 additions and 62 deletions

View File

@@ -1,14 +1,15 @@
const numberFormatter = new Intl.NumberFormat(undefined, {
const numberFormatter = new Intl.NumberFormat("en-GB", {
maximumFractionDigits: 2,
minimumFractionDigits: 0
})
const dateFormatter = new Intl.DateTimeFormat(undefined, {
const dateFormatter = new Intl.DateTimeFormat("en-GB", {
year: "numeric",
month: "2-digit",
day: "2-digit",
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
hour12: false
})