Zeitmaschine: kompaktes Snapshot-Datum lesbar anzeigen + Auftragsbuch-Doku
fmtSnap kannte nur Zeitstempel mit Trennzeichen (2026-07-08T...), backup.sh schreibt aber kompakt (20260708-181136) — Datum erschien roh. Regex tolerant gemacht. Dazu docs/AUFTRAGSBUCH.md (Funktionsweise + Leitplanken); dieser Branch ist zugleich die erste echte E2E-Annahme-Probe des Auftragsbuchs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -7,7 +7,7 @@
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<title>Mission Control 2.0</title>
|
||||
<script type="module" crossorigin src="/assets/index-BylmMpBk.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-CcL1k1kt.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-B7apENt0.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -123,8 +123,9 @@ function Zeitmaschine() {
|
||||
const shown = showAll ? backups : backups.slice(0, 4)
|
||||
|
||||
function fmtSnap(s: Snapshot): string {
|
||||
// Zeitstempel-Format aus backup.sh: 2026-07-08T03-30-01 o. ä. → lesbar machen.
|
||||
const m = s.snapshot.match(/^(\d{4})-(\d{2})-(\d{2})[T_-](\d{2})[-:](\d{2})/)
|
||||
// Zeitstempel aus backup.sh ist kompakt (20260708-181136) — lesbar machen;
|
||||
// tolerant auch für Varianten mit Trennzeichen (2026-07-08T18-11).
|
||||
const m = s.snapshot.match(/^(\d{4})-?(\d{2})-?(\d{2})[T_-](\d{2})[-:]?(\d{2})/)
|
||||
if (!m) return s.snapshot
|
||||
return `${m[3]}.${m[2]}.${m[1]}, ${m[4]}:${m[5]} Uhr`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user