MCPcopy
hub / github.com/simstudioai/sim / timezoneCity

Function timezoneCity

apps/sim/lib/core/utils/timezone.ts:48–50  ·  view source on GitHub ↗

The city/locale portion of an IANA id, formatted for display (e.g. `Los Angeles`).

(timeZone: string)

Source from the content-addressed store, hash-verified

46
47/** The city/locale portion of an IANA id, formatted for display (e.g. `Los Angeles`). */
48function timezoneCity(timeZone: string): string {
49 return (timeZone.split('/').pop() ?? timeZone).replace(/_/g, ' ')
50}
51
52/** `GMT±HH:MM` for an offset expressed in minutes east of UTC (e.g. `GMT-08:00`). */
53function formatGmtOffset(offsetMinutes: number): string {

Callers 1

getTimezoneOptionsFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected