Skip to content

Commit 9a61390

Browse files
authored
Change string format to constant value
1 parent b3bbc63 commit 9a61390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/coderd/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (api *API) userQuietHoursSchedule(rw http.ResponseWriter, r *http.Request)
6868
RawSchedule: opts.Schedule.String(),
6969
UserSet: opts.UserSet,
7070
UserCanSet: opts.UserCanSet,
71-
Time: opts.Schedule.TimeParsed().Format("15:04"),
71+
Time: opts.Schedule.TimeParsed().Format(TimeFormatHHMM),
7272
Timezone: opts.Schedule.Location().String(),
7373
Next: opts.Schedule.Next(time.Now().In(opts.Schedule.Location())),
7474
})

0 commit comments

Comments
 (0)