Skip to content

Commit

Permalink
fix: timeStamp NAN 대응 #268
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbonai06 committed Nov 7, 2022
1 parent 29c7f70 commit f5941cf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/ceos/bankids/dto/ChallengeDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class ChallengeDTO {
private Long weeks;

@ApiModelProperty(example = "2022/07/05 05:05:05")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd kk:mm:ss", timezone = "Asia/Seoul")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "Asia/Seoul")
private Timestamp createdAt;

@ApiModelProperty(example = "true")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ceos/bankids/dto/NoticeDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class NoticeDTO {
private String body;

@ApiModelProperty(example = "2022/07/05 05:05:05")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd kk:mm:ss", timezone = "Asia/Seoul")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "Asia/Seoul")
private Timestamp createdAt;

public NoticeDTO(Notice notice) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ceos/bankids/dto/NoticeListDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class NoticeListDTO {
private String title;

@ApiModelProperty(example = "2022/07/05 05:05:05")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd kk:mm:ss", timezone = "Asia/Seoul")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "Asia/Seoul")
private Timestamp createdAt;

public NoticeListDTO(Notice notice) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ceos/bankids/dto/NotificationDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class NotificationDTO {
private String linkUrl;

@ApiModelProperty(example = "2022/07/05 05:05:05")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd kk:mm:ss", timezone = "Asia/Seoul")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "Asia/Seoul")
private Timestamp createdAt;

public NotificationDTO(Notification notification) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ceos/bankids/dto/OptInDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class OptInDTO {
@ApiModelProperty(example = "true")
private Boolean serviceOptIn;
@ApiModelProperty(example = "2022/07/05 05:05:05")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd kk:mm:ss", timezone = "Asia/Seoul")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "Asia/Seoul")
private Timestamp updatedAt;

public OptInDTO(User user) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ceos/bankids/dto/ProgressDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ProgressDTO {
private ChallengeStatus challengeStatus;

@ApiModelProperty(example = "2022/05/05 06:33:13")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd kk:mm:ss", timezone = "Asia/Seoul")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "Asia/Seoul")
private Timestamp approvedAt;


Expand Down

0 comments on commit f5941cf

Please sign in to comment.