MCPcopy Create free account
hub / github.com/coder/coder / getCurrentTime

Function getCurrentTime

site/src/components/DateRangePicker/DateRangePicker.tsx:31–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30const buildDefaultPresets = (now?: Date): DateRangePreset[] => {
31 const getCurrentTime = () => dayjs(now ?? new Date());
32 return [
33 {
34 label: "Today",

Callers 1

buildDefaultPresetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected