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:
1 parent
ef0d74fb75
commit
c19f430f35
2 files changed
+13
-10
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user