Skip to content

Commit ad97167

Browse files
committed
fix: increase default extension time
This does not fully close #2141, but builds upon #2171 to fulfill each of the UX requests. A next step (probably as a separate ticket) is to allow customizing extension time pre-emptively.
1 parent 8cfe223 commit ad97167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/util/workspace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ export const isWorkspaceOn = (workspace: TypesGen.Workspace): boolean => {
251251

252252
export const defaultWorkspaceExtension = (__startDate?: dayjs.Dayjs): TypesGen.PutExtendWorkspaceRequest => {
253253
const now = __startDate ? dayjs(__startDate) : dayjs()
254-
const NinetyMinutesFromNow = now.add(90, "minutes").utc()
254+
const fourHoursFromNow = now.add(4, "hours").utc()
255255

256256
return {
257-
deadline: NinetyMinutesFromNow.format(),
257+
deadline: fourHoursFromNow.format(),
258258
}
259259
}
260260

0 commit comments

Comments
 (0)