Skip to content

Commit

Permalink
Merge pull request #87 from kimh7537/develop
Browse files Browse the repository at this point in the history
Refactor: ClubScheduleResponse의 시간 반환에서 초단위 제외하고 보내기
  • Loading branch information
kimh7537 authored Aug 23, 2024
2 parents 6dce1fd + 4457e22 commit 82cb3f8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.cotato.squadus.api.schedule.dto;

import com.cotato.squadus.domain.club.schedule.entity.ClubSchedule;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;
import java.time.LocalTime;
Expand All @@ -14,7 +15,11 @@ public record ClubScheduleResponse(
String location,
String equipment,
LocalDate date,

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
LocalTime startTime,

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
LocalTime endTime
) {
public static ClubScheduleResponse from(ClubSchedule schedule) {
Expand Down

0 comments on commit 82cb3f8

Please sign in to comment.