MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / isValidTimezone

Function isValidTimezone

src/runtime/adapters/scheduler.ts:65–72  ·  view source on GitHub ↗

* Validate that a timezone string is recognised by the runtime. * Returns true if valid, false otherwise.

(tz: string)

Source from the content-addressed store, hash-verified

63// ---------------------------------------------------------------------------
64
65/**
66 * Validate that a timezone string is recognised by the runtime.
67 * Returns true if valid, false otherwise.
68 */
69function isValidTimezone(tz: string): boolean {
70 try {
71 Intl.DateTimeFormat(undefined, { timeZone: tz });
72 return true;
73 } catch {
74 return false;
75 }

Callers 1

registerJobMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected