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

@@ -54,7 +54,7 @@
</div>
<div class="flex flex-col">
<span class="">Start: {date_formatter.format(entry.start_time)}</span>
<span class="">Last Message: {date_formatter.format(entry.last_message_time)}</span>
<span class="">Last Message: {entry.last_message_time && date_formatter.format(entry.last_message_time) || "N/A"}</span>
</div>
<div class="flex flex-row justify-between lg:justify-end gap-2 mt-2">
<DownloadLink url={entry.get_pcap_url()} text="pcap" full_button=true />