Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

모든 LocalDateTime [req, res] 데이터 규격화 요구 #151

Open
jyeonjyan opened this issue Aug 4, 2021 · 1 comment
Open

모든 LocalDateTime [req, res] 데이터 규격화 요구 #151

jyeonjyan opened this issue Aug 4, 2021 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@jyeonjyan
Copy link
Member

Responst (서버 -> 클라이언트) 로 전달할 때, Request(클라이언트 -> 서버)로 전달할 때
두 가지의 경우에 대한 데이터 포맷이 필요하다 생각이 듭니다. 정규화 하지 않으면 아래의 오류를 초래합니다.

Screen Shot 2021-08-04 at 4 50 13 PM

@jyeonjyan jyeonjyan added bug Something isn't working question Further information is requested labels Aug 4, 2021
@jyeonjyan
Copy link
Member Author

  1. client -> server [LocalDateTime] - 일정 추가
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "Asia/Seoul")

  2. client -> server [LocalDate] - 일정 기간 조회
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant