Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
Updated /health date formatting to show time when date is today.
nzbdav-dev4a214904d76a
diff --git a/frontend/app/routes/health/components/health-table/health-table.tsx b/frontend/app/routes/health/components/health-table/health-table.tsxindex 62eee662..01dc76aa 100644--- a/frontend/app/routes/health/components/health-table/health-table.tsx+++ b/frontend/app/routes/health/components/health-table/health-table.tsx@@ -112,13 +112,26 @@ function DateDetailsTable({ item }: { item: HealthCheckQueueItem }) {function formatDate(dateString: string | null, fallback: string) {try {- return dateString ? new Date(dateString).toLocaleDateString() : fallback;+ if (!dateString) return fallback;+ const now = new Date();+ const datetime = new Date(dateString);+ return isSameDate(datetime, now)+ ? datetime.toLocaleTimeString([], { hour: 'numeric', minute: '2-digit' })+ : datetime.toLocaleDateString();} catch {- return fallback;+ return 'Unknown';}};function formatDateBadge(dateString: string | null, fallback: string, variant: 'info' | 'warning' | 'success') {const dateText = formatDate(dateString, fallback);return <Badge bg={variant} className={styles.dateBadge}>{dateText}</Badge>;-};\ No newline at end of file+};++function isSameDate(one: Date, two: Date) {+ return (+ one.getFullYear() === two.getFullYear() &&+ one.getMonth() === two.getMonth() &&+ one.getDate() === two.getDate()+ );+}\ No newline at end of file