Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
539 B ยท 22 lines
TypeScript
1234567891011121314151617181920212223/** * Format cron timestamp (epoch ms) to ISO string * * @example * formatTimestamp(1737553800000) // "2026-01-22T14:30:00.000Z" * * @param cronTimestamp - Epoch timestamp in milliseconds * @returns Formatted timestamp string to ISO string */export function formatTimestamp(cronTimestamp: number): string { if (!cronTimestamp || !Number.isFinite(cronTimestamp)) { return "Unknown"; }
const date = new Date(cronTimestamp);
if (Number.isNaN(date.getTime())) { return "Unknown"; }
return date.toISOString();}