Skip to content

Commit c31b9dd

Browse files
committed
fixup! cli/ssh: notify relative time instead
1 parent dcd57cf commit c31b9dd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cli/ssh.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,7 @@ func notifyCondition(ctx context.Context, client *codersdk.Client, workspaceID u
296296
if ttl > time.Minute {
297297
title = fmt.Sprintf(`Workspace %s stopping soon`, ws.Name)
298298
body = fmt.Sprintf(
299-
`Your Coder workspace %s is scheduled to stop in %s`,
300-
ws.Name,
301-
deadline.Sub(now),
302-
)
299+
`Your Coder workspace %s is scheduled to stop in %s`, ws.Name, ttl)
303300
} else {
304301
title = fmt.Sprintf("Workspace %s stopping!", ws.Name)
305302
body = fmt.Sprintf("Your Coder workspace %s is stopping any time now!", ws.Name)

0 commit comments

Comments
 (0)