X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Fregistry.go;h=29d82a9220447caadcd708d26ce87d86175cb5bb;hb=d13ba63c1c237882202fc975d70ed5ad21a48fcf;hp=3de549a71b127d856b09ff488f73a6a84acecd35;hpb=92c3855b5c2d86a54f1342498a2772a605073e06;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/registry.go b/pkg/control/registry.go index 3de549a..29d82a9 100644 --- a/pkg/control/registry.go +++ b/pkg/control/registry.go @@ -36,7 +36,7 @@ import ( //----------------------------------------------------------------------------- type RESTSubscription struct { - Created time.Time + Created string xAppServiceName string xAppRmrEndPoint string Meid string @@ -233,7 +233,7 @@ func (r *Registry) CreateRESTSubscription(restSubId *string, xappServiceName *st r.mutex.Lock() defer r.mutex.Unlock() newRestSubscription := RESTSubscription{} - newRestSubscription.Created = time.Now() + newRestSubscription.Created = time.Now().Format("2006-01-02 15:04:05.000") newRestSubscription.xAppServiceName = *xappServiceName newRestSubscription.xAppRmrEndPoint = *xAppRmrEndPoint newRestSubscription.Meid = *maid