Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
30
const buildDefaultPresets = (now?: Date): DateRangePreset[] => {
31
const getCurrentTime = () => dayjs(now ?? new Date());
32
return [
33
{
34
label:
"Today"
,
Callers
1
buildDefaultPresets
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected