Fix: Snapshot-Datum 'Invalid Date' - Feld created statt creation

Backend liefert das Snapshot-Erstellungsdatum als 'created' (Unix-Timestamp),
das Frontend-Interface/Rendering erwartete aber 'creation'. Feld angeglichen
und creation_datetime im Interface ergänzt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 21:31:57 +02:00
parent b12dfe64e4
commit 99c62b82ad
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ export default function SnapshotsPage() {
</div> </div>
</td> </td>
<td className="py-3 px-4 font-mono text-xs font-medium">{tag}</td> <td className="py-3 px-4 font-mono text-xs font-medium">{tag}</td>
<td className="py-3 px-4 text-muted-foreground">{formatUnix(snap.creation)}</td> <td className="py-3 px-4 text-muted-foreground">{formatUnix(snap.created)}</td>
<td className="py-3 px-4">{formatBytes(snap.used)}</td> <td className="py-3 px-4">{formatBytes(snap.used)}</td>
<td className="py-3 px-4">{formatBytes(snap.referenced)}</td> <td className="py-3 px-4">{formatBytes(snap.referenced)}</td>
<td className="py-3 px-4 text-right"> <td className="py-3 px-4 text-right">
+2 -1
View File
@@ -47,9 +47,10 @@ export interface DatasetProperties {
export interface Snapshot { export interface Snapshot {
name: string name: string
dataset?: string dataset?: string
creation: number created: number
used: number used: number
referenced: number referenced: number
creation_datetime?: string
} }
export interface SambaShare { export interface SambaShare {