Skip to content

Commit

Permalink
refactor : Date jsonFormat 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
MyunghyunNero committed Nov 21, 2023
1 parent ac7434f commit 9994d21
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/kusitms/gallae/dto/program/ProgramMainRes.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kusitms.gallae.dto.program;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
Expand All @@ -27,12 +28,10 @@ public class ProgramMainRes {

private List<String> hashTag;

@Schema(description = "모집 시작", example = "2021-11-03", type = "string")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul")
private LocalDate recruitStartDate;

@Schema(description = "모집 끝", example = "2021-11-03", type = "string")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul")
private LocalDate recruitEndDate;

private boolean userLikeCheck;
Expand Down

0 comments on commit 9994d21

Please sign in to comment.