MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / utc

Function utc

apps/start/src/utils/date.ts:65–70  ·  view source on GitHub ↗
(date: string)

Source from the content-addressed store, hash-verified

63}
64
65export function utc(date: string) {
66 if (date.match(/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}$/)) {
67 return new Date(`${date}Z`);
68 }
69 return new Date(date).toISOString();
70}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected