MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / formatUtcTimeAsLocal

Function formatUtcTimeAsLocal

source code/utils/cron.ts:209–218  ·  view source on GitHub ↗
(minute: number, hour: number)

Source from the content-addressed store, hash-verified

207}
208
209function formatUtcTimeAsLocal(minute: number, hour: number): string {
210 // Create a date in UTC and format in user's local timezone
211 const d = new Date()
212 d.setUTCHours(hour, minute, 0, 0)
213 return d.toLocaleTimeString('en-US', {
214 hour: 'numeric',
215 minute: '2-digit',
216 timeZoneName: 'short',
217 })
218}
219
220export function cronToHuman(cron: string, opts?: { utc?: boolean }): string {
221 const utc = opts?.utc ?? false

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected