diff options
| author | KubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com> | 2024-08-27 11:58:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-27 11:58:38 +0800 |
| commit | aa7494f677a3505e01743ac65f2d04a3b2c6a281 (patch) | |
| tree | fbdcb64689b2880bd97091fcca8917898fdaa92d /cloud/pkg/taskmanager/nodeupgradecontroller | |
| parent | Merge pull request #5808 from Catherine-monk/kubeedge/makefile (diff) | |
| parent | Make kubeedge time international (diff) | |
| download | kubeedge-origin/master.tar.gz | |
Merge pull request #5817 from WillardHu/time-utcorigin/masterorigin/HEAD
Make the timestamps of kubeedge resources support international time
Diffstat (limited to 'cloud/pkg/taskmanager/nodeupgradecontroller')
| -rw-r--r-- | cloud/pkg/taskmanager/nodeupgradecontroller/upgrade_task.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cloud/pkg/taskmanager/nodeupgradecontroller/upgrade_task.go b/cloud/pkg/taskmanager/nodeupgradecontroller/upgrade_task.go index 14f8873c9..ab269e744 100644 --- a/cloud/pkg/taskmanager/nodeupgradecontroller/upgrade_task.go +++ b/cloud/pkg/taskmanager/nodeupgradecontroller/upgrade_task.go @@ -24,7 +24,6 @@ import ( v1alpha12 "github.com/kubeedge/api/apis/fsm/v1alpha1" "github.com/kubeedge/api/apis/operations/v1alpha1" "github.com/kubeedge/kubeedge/cloud/pkg/common/client" - "github.com/kubeedge/kubeedge/cloud/pkg/taskmanager/util" "github.com/kubeedge/kubeedge/pkg/util/fsm" ) @@ -62,7 +61,7 @@ func updateUpgradeNodeState(id, nodeName string, state v1alpha12.State, event fs State: state, Event: event.Type, Action: event.Action, - Time: time.Now().Format(util.ISO8601UTC), + Time: time.Now().UTC().Format(time.RFC3339), Reason: event.Msg, } break @@ -111,7 +110,7 @@ func updateUpgradeTaskState(id, _ string, state v1alpha12.State, event fsm.Event status.Action = event.Action status.Reason = event.Msg status.State = state - status.Time = time.Now().Format(util.ISO8601UTC) + status.Time = time.Now().UTC().Format(time.RFC3339) err := patchStatus(newTask, *status, client.GetCRDClient()) |
