Skip to content

Commit

Permalink
Added json format annotation for the time created value in group resp…
Browse files Browse the repository at this point in the history
…onse
  • Loading branch information
RoyToledano committed Sep 3, 2024
1 parent d3ea226 commit 3f0bb24
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.MTAPizza.Sympoll.groupmanagementservice.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
import java.util.List;
import java.util.UUID;
Expand All @@ -9,6 +11,7 @@ public record GroupResponse (
String groupName,
String description,
UUID creatorId,
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'")
LocalDateTime timeCreated,
List<MemberResponse> membersList
) {}

0 comments on commit 3f0bb24

Please sign in to comment.