Skip to content

Commit

Permalink
Merge pull request #12 from SM-LCK/feature/history
Browse files Browse the repository at this point in the history
[FIX]: Json 포맷 타임존 설정
  • Loading branch information
kelly1422 authored Oct 5, 2023
2 parents 4047979 + 51d5da8 commit e33f776
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/main/java/LCK/snowTaxi2/domain/Member.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package LCK.snowTaxi2.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.*;
import lombok.*;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/LCK/snowTaxi2/domain/chat/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Message {

private String content;

@JsonFormat(pattern = "a hh:mm")
@JsonFormat(pattern = "a hh:mm", timezone = "Asia/Seoul")
private LocalTime sentTime;

}
2 changes: 1 addition & 1 deletion src/main/java/LCK/snowTaxi2/domain/pot/TaxiPot.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class TaxiPot {
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate ridingDate;

@JsonFormat(pattern = "a hh:mm")
@JsonFormat(pattern = "a hh:mm", timezone = "Asia/Seoul")
private LocalTime ridingTime;

private int headCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@Builder
public class MessageResponseDto {

@JsonFormat(pattern = "a hh:mm")
@JsonFormat(pattern = "a hh:mm", timezone = "Asia/Seoul")
private LocalTime sentTime;

private String sender;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/LCK/snowTaxi2/dto/pot/MyPotsResponseDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public class MyPotsResponseDto {

private long id;

@JsonFormat(pattern = "yyyy.MM.dd (E)")
@JsonFormat(pattern = "yyyy.MM.dd (E)", timezone = "Asia/Seoul")
private LocalDate ridingDate;

@JsonFormat(pattern = "a hh:mm")
@JsonFormat(pattern = "a hh:mm", timezone = "Asia/Seoul")
private LocalTime ridingTime;

private int headCount;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/LCK/snowTaxi2/dto/pot/TaxiPotInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class TaxiPotInfo {

private long potId;

@JsonFormat(pattern = "a hh:mm")
@JsonFormat(pattern = "a hh:mm", timezone = "Asia/Seoul")
private LocalTime ridingTime;

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class TaxiPotResponseDto implements Comparable<TaxiPotResponseDto> {

private long id;

@JsonFormat(pattern = "a hh:mm")
@JsonFormat(pattern = "a hh:mm", timezone = "Asia/Seoul")
private LocalTime ridingTime;

private int headCount;
Expand Down

0 comments on commit e33f776

Please sign in to comment.