fix(cli): display workspace created at time instead of current time (#19553)

Applying a suggestion from
https://github.com/coder/coder/pull/19492#discussion_r2301175791
This commit is contained in:
Danielle Maywood
2025-08-26 15:57:44 +01:00
committed by GitHub
parent ef0d74fb75
commit c19f430f35
2 changed files with 13 additions and 10 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ package cli
import (
"fmt"
"strings"
"time"
"github.com/google/uuid"
"golang.org/x/xerrors"
@@ -118,7 +117,7 @@ func (r *RootCmd) taskCreate() *serpent.Command {
inv.Stdout,
"The task %s has been created at %s!\n",
cliui.Keyword(workspace.Name),
cliui.Timestamp(time.Now()),
cliui.Timestamp(workspace.CreatedAt),
)
return nil