Skip to content

Commit

Permalink
refactor: 포매팅 된 날짜 string을 내뱉는 메서드 명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunji1203 committed Nov 16, 2023
1 parent 4877ade commit e6fcd06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class LetterReadDialog(private val content: LetterUiModel) : DialogFragment() {

private fun setContent() {
binding.letter = content
binding.tvDialogLetterDate.text = formatDate()
binding.tvDialogLetterDate.text = getFormattedDate()
}

private fun formatDate(): String {
private fun getFormattedDate(): String {
val serverLocalDateTime = LocalDateTime.parse(content.registerDate, DateTimeFormatter.ISO_DATE_TIME)
val outputFormatter = DateTimeFormatter.ofPattern(DATE_FORMAT_PATTERN)
return serverLocalDateTime.format(outputFormatter)
Expand Down

0 comments on commit e6fcd06

Please sign in to comment.