Skip to content

Commit 629487f

Browse files
committed
time format
1 parent 1631e2b commit 629487f

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

internal/cli/serverless/changefeed/list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package changefeed
1616

1717
import (
1818
"fmt"
19+
"time"
1920

2021
"github.com/juju/errors"
2122
"github.com/spf13/cobra"
@@ -138,7 +139,7 @@ func ListCmd(h *internal.Helper) *cobra.Command {
138139
*item.DisplayName,
139140
string(item.Sink.Type),
140141
string(*item.State),
141-
item.CreateTime.String(),
142+
item.CreateTime.Format(time.RFC3339),
142143
})
143144
}
144145
err := output.PrintHumanTable(h.IOStreams.Out, columns, rows)

internal/cli/serverless/migration/list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package migration
1616

1717
import (
1818
"fmt"
19+
"time"
1920

2021
"github.com/AlekSi/pointer"
2122
"github.com/juju/errors"
@@ -125,7 +126,7 @@ func ListCmd(h *internal.Helper) *cobra.Command {
125126
name := pointer.Get(task.DisplayName)
126127
mode := string(pointer.Get(task.Mode))
127128
state := string(pointer.Get(task.State))
128-
rows = append(rows, output.Row{id, name, mode, state, task.CreateTime.String()})
129+
rows = append(rows, output.Row{id, name, mode, state, task.CreateTime.Format(time.RFC3339)})
129130
}
130131
return errors.Trace(output.PrintHumanTable(h.IOStreams.Out, columns, rows))
131132
},

internal/cli/serverless/privatelink/list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package privatelink
1616

1717
import (
1818
"fmt"
19+
"time"
1920

2021
"github.com/juju/errors"
2122
"github.com/spf13/cobra"
@@ -130,7 +131,7 @@ func ListCmd(h *internal.Helper) *cobra.Command {
130131
item.DisplayName,
131132
string(item.Type),
132133
string(*item.State),
133-
item.CreateTime.String(),
134+
item.CreateTime.Format(time.RFC3339),
134135
})
135136
}
136137
err := output.PrintHumanTable(h.IOStreams.Out, columns, rows)

0 commit comments

Comments
 (0)