diff --git a/sdk-java/src/main/java/ly/count/sdk/java/internal/ModuleRequests.java b/sdk-java/src/main/java/ly/count/sdk/java/internal/ModuleRequests.java index 22dec1b0a..868075230 100644 --- a/sdk-java/src/main/java/ly/count/sdk/java/internal/ModuleRequests.java +++ b/sdk-java/src/main/java/ly/count/sdk/java/internal/ModuleRequests.java @@ -193,6 +193,7 @@ static Request addRequired(InternalConfig config, Request request) { //if nothing was in the request, no need to add these mandatory fields return request; } + //check if it has the device ID if (!request.params.has(Params.PARAM_DEVICE_ID)) { if (config.getDeviceId() == null) { @@ -251,10 +252,7 @@ public static Future pushAsync(final CtxCore ctx, final Request request return null; } - request.params.add("timestamp", Device.dev.uniqueTimestamp()) - .add("tz", Device.dev.getTimezoneOffset()) - .add("hour", Device.dev.currentHour()) - .add("dow", Device.dev.currentDayOfWeek()); + addRequiredTimeParams(request); return Storage.pushAsync(ctx, request, param -> { SDKCore.instance.onRequest(ctx, request);