feat: TDR Dropdown verbessert – Anzeige im deutschen Format mit Fehlerstelle

- Dropdown-Einträge zeigen jetzt nur Zeitstempel (deutsches Format) und Fehlerstelle ("d") an
- ID wird weiterhin als `value` genutzt, aber nicht angezeigt
- Zeitstempel wird mit `toLocaleString("de-DE", {...})` formatiert
- Anzeigeformat z. B.: "27.03.2025, 23:42:41 – Fehlerstelle: 8805 m"
This commit is contained in:
ISA
2025-03-31 14:12:44 +02:00
parent 897a0bb6e0
commit b404390186
2 changed files with 10 additions and 2 deletions

View File

@@ -122,7 +122,15 @@ const TDRChartActionBar: React.FC = () => {
<option value="">-- Wähle Messung --</option>
{idsForSlot.map((entry) => (
<option key={entry.id} value={entry.id}>
ID {entry.id} {entry.t}
{new Date(entry.t).toLocaleString("de-DE", {
day: "2-digit",
month: "2-digit",
year: "numeric",
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
})}{" "}
Fehlerstelle: {entry.d} m
</option>
))}
</select>