Harden media health checks and duration extraction
Deploy To Ghaymah / deploy (push) Has been cancelled

This commit is contained in:
boutmoun123
2026-05-31 18:53:07 +03:00
parent 1973b8b904
commit 637782aed6
11 changed files with 587 additions and 138 deletions
+7 -3
View File
@@ -1,9 +1,13 @@
export function formatDateTime(value?: string | null) {
if (!value) return "-";
try {
return new Intl.DateTimeFormat("ar-SA", {
dateStyle: "medium",
timeStyle: "short",
return new Intl.DateTimeFormat("en-US", {
year: "numeric",
month: "short",
day: "2-digit",
hour: "2-digit",
minute: "2-digit",
hour12: true,
}).format(new Date(value));
} catch {
return value;