diff --git a/Clody_iOS/Clody_iOS/Global/Extensions/Date+.swift b/Clody_iOS/Clody_iOS/Global/Extensions/Date+.swift index 1a73027..b668cef 100644 --- a/Clody_iOS/Clody_iOS/Global/Extensions/Date+.swift +++ b/Clody_iOS/Clody_iOS/Global/Extensions/Date+.swift @@ -46,20 +46,9 @@ extension Date { } func toKSTDiaryString() -> String { - let now = Date() - let calendar = Calendar.current - var targetDate = now - - if calendar.isDateInYesterday(self) { - if let adjustedDate = calendar.date(byAdding: .day, value: -1, to: now) { - targetDate = adjustedDate - } - } - let formatter = DateFormatter() - formatter.locale = Locale(identifier: "en_US_POSIX") formatter.timeZone = TimeZone(identifier: "Asia/Seoul") formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss" - return formatter.string(from: targetDate) + return formatter.string(from: self) } }