MCPcopy Create free account
hub / github.com/ShipSecAI/studio / formatDateTime

Function formatDateTime

frontend/src/pages/WebhooksPage.tsx:49–59  ·  view source on GitHub ↗
(value?: string | null)

Source from the content-addressed store, hash-verified

47};
48
49const formatDateTime = (value?: string | null) => {
50 if (!value) return '—';
51 const date = new Date(value);
52 return new Intl.DateTimeFormat('en-US', {
53 month: 'short',
54 day: 'numeric',
55 hour: 'numeric',
56 minute: 'numeric',
57 timeZoneName: 'short',
58 }).format(date);
59};
60
61const getWorkflowName = (workflowId: string, workflows: WorkflowOption[]): string => {
62 const match = workflows.find((workflow) => workflow.id === workflowId);

Callers 1

WebhooksPageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected