mermaid ink image support

This commit is contained in:
2025-07-15 12:47:53 -06:00
parent 57b7d8ac1e
commit 43ed57e558
8 changed files with 68 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
export function formatHumanReadableDate(date: Date | string): string {
const d = typeof date === "string" ? new Date(date) : date;
if (isNaN(d.getTime())) return "Invalid date";
const options: Intl.DateTimeFormatOptions = {
weekday: "short",
// year: "numeric",
month: "short",
day: "numeric",
hour: "2-digit",
minute: "2-digit",
};
return d.toLocaleString(undefined, options);
}