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

Function autostartDisplay

site/src/utils/schedule.tsx:57–69  ·  view source on GitHub ↗
(schedule: string | undefined)

Source from the content-addressed store, hash-verified

55};
56
57export const autostartDisplay = (schedule: string | undefined): string => {
58 if (schedule) {
59 return (
60 cronstrue
61 .toString(stripTimezone(schedule), {
62 throwExceptionOnParseError: false,
63 })
64 // We don't want to keep the At because it is on the label
65 .replace("At", "")
66 );
67 }
68 return "Manual";
69};
70
71const isShuttingDown = (workspace: Workspace, deadline?: Dayjs): boolean => {
72 if (!deadline) {

Callers 1

Calls 1

stripTimezoneFunction · 0.85

Tested by

no test coverage detected