Skip to content

Commit

Permalink
[HOTFIX] localdatetime json format
Browse files Browse the repository at this point in the history
  • Loading branch information
ohksj77 committed Jan 12, 2024
1 parent 0b33268 commit e27ca6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.twtw.backend.domain.plan.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.twtw.backend.domain.plan.dto.response.PlaceDetails;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;
Expand All @@ -18,10 +17,7 @@ public class SavePlanRequest {
private String name;
private UUID groupId;

@JsonFormat(
shape = JsonFormat.Shape.STRING,
pattern = "yyyy-MM-dd HH:mm",
timezone = "Asia/Seoul")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
private LocalDateTime planDay;

private PlaceDetails placeDetails;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package com.twtw.backend.domain.plan.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.UUID;
Expand All @@ -15,9 +14,6 @@
public class UpdatePlanDayRequest {
private UUID planId;

@JsonFormat(
shape = JsonFormat.Shape.STRING,
pattern = "yyyy-MM-dd HH:mm",
timezone = "Asia/Seoul")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
private LocalDateTime changeDay;
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.twtw.backend.domain.plan.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.twtw.backend.domain.place.entity.CategoryGroupCode;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;
Expand All @@ -17,10 +16,7 @@
public class UpdatePlanRequest {
private UUID planId;

@JsonFormat(
shape = JsonFormat.Shape.STRING,
pattern = "yyyy-MM-dd HH:mm",
timezone = "Asia/Seoul")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
private LocalDateTime planDay;

private String name;
Expand Down

0 comments on commit e27ca6e

Please sign in to comment.