Skip to content

Commit

Permalink
chore: 컨벤션
Browse files Browse the repository at this point in the history
  • Loading branch information
iOS-Woong committed Jun 14, 2024
1 parent b1cf8ef commit 0efbc99
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Climeet-iOS/Climeet-iOS/Common/Extension/DateFormatter + .swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ extension DateFormatter {

// MARK: 2023년 12월 12일 (화)
static let koreanFullDateWithDayFormatter: DateFormatter = {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy년 MM월 dd일 (E)"
formatter.timeZone = TimeZone(identifier: "Asia/Seoul")
formatter.locale = Locale(identifier: "ko_KR")
return formatter
let formatter = DateFormatter()
formatter.dateFormat = "yyyy년 MM월 dd일 (E)"
formatter.timeZone = TimeZone(identifier: "Asia/Seoul")
formatter.locale = Locale(identifier: "ko_KR")
return formatter
}()

// MARK: AM 9:00
static let amTimeFormatter: DateFormatter = {
let formatter = DateFormatter()
formatter.dateFormat = "a h:mm"
formatter.timeZone = TimeZone(identifier: "Asia/Seoul")
formatter.locale = Locale(identifier: "en_US_POSIX") // AM/PM 표기를 위해 영어 로케일 사용
return formatter
}()
let formatter = DateFormatter()
formatter.dateFormat = "a h:mm"
formatter.timeZone = TimeZone(identifier: "Asia/Seoul")
formatter.locale = Locale(identifier: "en_US_POSIX") // AM/PM 표기를 위해 영어 로케일 사용
return formatter
}()
}

0 comments on commit 0efbc99

Please sign in to comment.