MCPcopy Index your code
hub / github.com/coder/coder / stripTimezone

Function stripTimezone

site/src/utils/schedule.tsx:37–39  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

35 * stripTimezone strips a leading timezone from a schedule string
36 */
37export const stripTimezone = (raw: string): string => {
38 return raw.replace(/CRON_TZ=\S*\s/, "");
39};
40
41/**
42 * extractTimezone returns a leading timezone from a schedule string if one is

Callers 3

schedule.test.tsFile · 0.90
transformScheduleFunction · 0.90
autostartDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected