Skip to content

Commit

Permalink
fix timestamp format
Browse files Browse the repository at this point in the history
Signed-off-by: jkoberg <[email protected]>
  • Loading branch information
kobergj committed Jun 5, 2023
1 parent 3bd8cb3 commit 1227413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion services/eventhistory/pkg/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
userv1beta1 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
"github.com/cs3org/reva/v2/pkg/events"
"github.com/cs3org/reva/v2/pkg/store"
"github.com/cs3org/reva/v2/pkg/utils"
"github.com/google/uuid"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -66,7 +67,7 @@ var _ = Describe("EventHistoryService", func() {
},
},
Failed: false,
Timestamp: time.Time{},
Timestamp: utils.TimeToTS(time.Time{}),
})
ids[1] = bus.Publish(events.UserCreated{
UserID: "another-id",
Expand Down
2 changes: 1 addition & 1 deletion services/graph/pkg/service/v0/personaldata.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (g Graph) GatherPersonalData(usr *user.User, ref *provider.Reference, token

if err := events.Publish(g.eventsPublisher, events.PersonalDataExtracted{
Executant: usr.GetId(),
Timestamp: time.Now(),
Timestamp: utils.TimeToTS(time.Now()),
ErrorMsg: errmsg,
}); err != nil {
g.logger.Error().Err(err).Msg("cannot publish event")
Expand Down

0 comments on commit 1227413

Please sign in to comment.