Fix last_message_time showing as 1970 when capture is 0 bytes

This is the same bug as #224, but regressed in the new UI
This commit is contained in:
Markus Unterwaditzer
2025-06-16 18:17:11 +02:00
committed by Will Greenberg
parent 76cdb3ecf1
commit cb2092d14f
3 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ export class ManifestEntry {
this.qmdl_size_bytes = json.qmdl_size_bytes;
this.analysis_size_bytes = json.analysis_size_bytes;
this.start_time = new Date(json.start_time);
if (json.last_message_time !== undefined) {
if (json.last_message_time) {
this.last_message_time = new Date(json.last_message_time);
}
}