Skip to content

Commit

Permalink
fix: Use seconds instead of milliseconds (#1174)
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Kayukin <[email protected]>
Co-authored-by: Konstantin Kayukin <[email protected]>
  • Loading branch information
kayukin and Konstantin Kayukin authored Jan 23, 2025
1 parent ac751e8 commit 921231a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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())
Expand Down

0 comments on commit 921231a

Please sign in to comment.