Skip to content

Commit

Permalink
SHIBUI-2165
Browse files Browse the repository at this point in the history
Adjustment to fix tests
  • Loading branch information
chasegawa committed Oct 12, 2021
1 parent e8f9a48 commit c4d2b55
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class EntityDescriptorRepresentation implements Serializable {
private static final long serialVersionUID = 7753435553892353966L;
private DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS");

private List<AssertionConsumerServiceRepresentation> assertionConsumerServices;

Expand Down Expand Up @@ -98,7 +100,7 @@ public String getCreatedBy() {
}

public String getCreatedDate() {
return createdDate != null ? createdDate.toString() : null;
return createdDate != null ? formatter.format(createdDate) : null;
}

public String getEntityId() {
Expand All @@ -125,7 +127,7 @@ public MduiRepresentation getMdui() {
}

public String getModifiedDate() {
return modifiedDate != null ? modifiedDate.toString() : null;
return modifiedDate != null ? formatter.format(modifiedDate) : null;
}

@JsonIgnore
Expand All @@ -134,7 +136,6 @@ public LocalDateTime getModifiedDateAsDate() {
return modifiedDate != null ? modifiedDate : createdDate != null ? createdDate : LocalDateTime.now();
}


public OrganizationRepresentation getOrganization() {
return organization;
}
Expand Down Expand Up @@ -245,4 +246,4 @@ public void setServiceProviderSsoDescriptor(ServiceProviderSsoDescriptorRepresen
public void setVersion(int version) {
this.version = version;
}
}
}

0 comments on commit c4d2b55

Please sign in to comment.