diff --git a/frontend/src/utils/dateTimeUtils.ts b/frontend/src/utils/dateTimeUtils.ts index caddf961..acb998a9 100644 --- a/frontend/src/utils/dateTimeUtils.ts +++ b/frontend/src/utils/dateTimeUtils.ts @@ -34,6 +34,21 @@ export function formatDate(dateString: string): string { day: 'numeric', year: 'numeric', }); + } else if ( + /^[A-Za-z]{3}, \d{2} [A-Za-z]{3} \d{4} \d{2}:\d{2}:\d{2} GMT$/.test( + dateString, + ) + ) { + // Format: "Fri, 08 Jul 2025 06:00:00 GMT" + const dateTime = new Date(dateString); + return dateTime.toLocaleDateString('en-US', { + weekday: 'short', + month: 'short', + day: 'numeric', + year: 'numeric', + hour: '2-digit', + minute: '2-digit', + }); } else { return dateString; }