diff --git a/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/DataCollectorHook.java b/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/DataCollectorHook.java index f9302ac7b..41ac25088 100644 --- a/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/DataCollectorHook.java +++ b/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/DataCollectorHook.java @@ -62,7 +62,7 @@ public void after(HookContext ctx, FlagEvaluationDetails details, Map hints) { .variation(details.getVariant()) .value(details.getValue()) .userKey(ctx.getCtx().getTargetingKey()) - .creationDate(System.currentTimeMillis()) + .creationDate(System.currentTimeMillis() / 1000L) .build(); eventsPublisher.add(event); } @@ -73,7 +73,7 @@ public void error(HookContext ctx, Exception error, Map hints) { .key(ctx.getFlagKey()) .kind("feature") .contextKind(GoFeatureFlagUser.isAnonymousUser(ctx.getCtx()) ? "anonymousUser" : "user") - .creationDate(System.currentTimeMillis()) + .creationDate(System.currentTimeMillis() / 1000L) .defaultValue(true) .variation("SdkDefault") .value(ctx.getDefaultValue())