Skip to content

Commit

Permalink
EPMRPP-90681 || Replace LocalDateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
APiankouski committed Jun 27, 2024
1 parent da3b1a6 commit 67d4c9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.epam.ta.reportportal.entity.integration.Integration;
import com.epam.ta.reportportal.entity.integration.IntegrationType;
import java.time.Instant;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;

Expand Down Expand Up @@ -46,7 +47,7 @@ public AuthIntegrationBuilder addIntegrationType(IntegrationType type) {
return this;
}

public AuthIntegrationBuilder addCreationDate(LocalDateTime creationDate) {
public AuthIntegrationBuilder addCreationDate(Instant creationDate) {
integration.setCreationDate(creationDate);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.epam.reportportal.rules.exception.ReportPortalException;
import com.epam.reportportal.rules.exception.ErrorType;
import com.epam.reportportal.model.integration.auth.UpdateAuthRQ;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneOffset;

Expand Down Expand Up @@ -53,7 +54,7 @@ public Integration createIntegration(IntegrationType integrationType, UpdateAuth

final Integration integration = new AuthIntegrationBuilder().addCreator(username)
.addIntegrationType(integrationType)
.addCreationDate(LocalDateTime.now(ZoneOffset.UTC))
.addCreationDate(Instant.now())
.build();
fill(integration, request);

Expand Down

0 comments on commit 67d4c9a

Please sign in to comment.