@@ -252,7 +252,7 @@ func GetEnvironments(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Com
252252
253253 data := make ([][]string , 0 , 0 )
254254 for _ , envi := range response .GetEnvironments () {
255- formatted := formatTimestamp (envi .GetCreatedWhen ())
255+ formatted := formatTimestamp (time . Millisecond * time . Duration ( envi .GetCreatedWhen () ))
256256 data = append (data , []string {envi .GetId (), envi .GetRootRole (), formatted , colorState (envi .GetState ())})
257257 }
258258
@@ -539,7 +539,7 @@ func ShowEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Com
539539 _ , _ = fmt .Fprintf (o , "environment id: %s\n " , env .GetId ())
540540 _ , _ = fmt .Fprintf (o , "workflow template: %s\n " , env .GetRootRole ())
541541 _ , _ = fmt .Fprintf (o , "description: %s\n " , env .GetDescription ())
542- _ , _ = fmt .Fprintf (o , "created: %s\n " , formatTimestamp (env .GetCreatedWhen ()))
542+ _ , _ = fmt .Fprintf (o , "created: %s\n " , formatTimestamp (time . Millisecond * time . Duration ( env .GetCreatedWhen () )))
543543 _ , _ = fmt .Fprintf (o , "state: %s\n " , colorState (env .GetState ()))
544544 if currentTransition := env .GetCurrentTransition (); len (currentTransition ) != 0 {
545545 _ , _ = fmt .Fprintf (o , "transition: %s\n " , currentTransition )
0 commit comments