Skip to content

Commit

Permalink
formatting the tag timestamp - was previously done in tests, but not …
Browse files Browse the repository at this point in the history
…missed from the logic here itself
  • Loading branch information
ina-stoyanova committed Oct 8, 2020
1 parent 36a39a9 commit d267e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/ecs_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func getAllEcsClustersOlderThan(awsSession *session.Session, region string, excl
}

if firstSeenTime.IsZero() {
err := tagEcsCluster(awsSession, clusterArn, firstSeenTagKey, time.Now().UTC().String())
err := tagEcsCluster(awsSession, clusterArn, firstSeenTagKey, time.Now().UTC().Format(time.RFC3339))
if err != nil {
logging.Logger.Errorf("Error tagigng the ECS cluster with ARN %s", aws.StringValue(clusterArn))
return nil, errors.WithStackTrace(err)
Expand Down

0 comments on commit d267e39

Please sign in to comment.