diff --git a/Projects/Domain/RecruitmentsDomain/Interface/DTO/Trasfer/RecruitmentDetailTransfer.swift b/Projects/Domain/RecruitmentsDomain/Interface/DTO/Trasfer/RecruitmentDetailTransfer.swift index f8aa4d5c..6ea0beb7 100644 --- a/Projects/Domain/RecruitmentsDomain/Interface/DTO/Trasfer/RecruitmentDetailTransfer.swift +++ b/Projects/Domain/RecruitmentsDomain/Interface/DTO/Trasfer/RecruitmentDetailTransfer.swift @@ -7,9 +7,9 @@ public extension RecruitmentDetailResponseDTO { return String(requiredGrade) + "% 이내" } var workTime: String { - startTime.toHoursMinutes() + - " ~ " + - endTime.toHoursMinutes() + [startTime, endTime].map { + $0.components(separatedBy: ":")[0...1].joined(separator: ":") + }.joined(separator: " ~ ") } return RecruitmentDetailEntity( companyID: companyID, @@ -46,9 +46,3 @@ public extension AreaResponseDTO { ) } } - -extension String { - func toHoursMinutes() -> String { - self.components(separatedBy: ":")[0...1].joined(separator: ":") - } -}