diff --git a/.env.development b/.env.development index 51c6f56..55f7575 100644 --- a/.env.development +++ b/.env.development @@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_USE_CGI=false # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.573 +NEXT_PUBLIC_APP_VERSION=1.6.574 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index 2dbdb2e..74a138a 100644 --- a/.env.production +++ b/.env.production @@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_USE_CGI=true # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.573 +NEXT_PUBLIC_APP_VERSION=1.6.574 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9964eab..bde11eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.574] – 2025-07-10 + +- fix(system-charts): Zeitachse angepasst – aktuelle Daten jetzt rechts wie bei Kabelüberwachung + +--- ## [1.6.573] – 2025-07-10 - fix(system-charts): Y-Achse mit Einheiten ergänzt (V und °C) für bessere Lesbarkeit diff --git a/components/main/system/DetailModal.tsx b/components/main/system/DetailModal.tsx index 32403f8..a320ed0 100644 --- a/components/main/system/DetailModal.tsx +++ b/components/main/system/DetailModal.tsx @@ -43,7 +43,17 @@ export const DetailModal = ({ }); const reversedData = [...reduxData].reverse(); - const labels = reversedData.map((e) => e.t); + const labels = reversedData.map((e) => + new Date(e.t).toLocaleString("de-DE", { + day: "2-digit", + month: "2-digit", + year: "numeric", + hour: "2-digit", + minute: "2-digit", + second: undefined, // Sekunden ausschließen + }) + ); + const values = reversedData.map((e) => e.i); const baseOptions = { diff --git a/package-lock.json b/package-lock.json index d33bdfe..06b216a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.573", + "version": "1.6.574", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.573", + "version": "1.6.574", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 9374623..2b5e275 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.573", + "version": "1.6.574", "private": true, "scripts": { "dev": "next dev",