Skip to content

Commit 59d500d

Browse files
committed
FIX: 제보 목록 날짜 표시 형식을 "25.11.03 월" 구조로 표시되도록 수정
1 parent 91f55d4 commit 59d500d

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

presentation/src/main/java/com/threegap/bitnagil/presentation/reporthistory/ReportHistoryScreen.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import com.threegap.bitnagil.presentation.reporthistory.model.ReportHistoriesPer
3939
import com.threegap.bitnagil.presentation.reporthistory.model.ReportHistoryState
4040
import com.threegap.bitnagil.presentation.reporthistory.model.ReportHistoryUiModel
4141
import com.threegap.bitnagil.presentation.reporthistory.model.ReportProcess
42+
import com.threegap.bitnagil.presentation.reporthistory.util.toPresentationFormat
4243
import org.orbitmvi.orbit.compose.collectAsState
4344

4445
@Composable
@@ -132,7 +133,7 @@ private fun ReportHistoryScreen(
132133
.background(color = BitnagilTheme.colors.coolGray99),
133134
) {
134135
Text(
135-
text = reportHistoriesPerDay.date.toString(),
136+
text = reportHistoriesPerDay.date.toPresentationFormat(),
136137
modifier = Modifier.align(Alignment.CenterStart),
137138
style = BitnagilTheme.typography.body2SemiBold,
138139
)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.threegap.bitnagil.presentation.reporthistory.util
2+
3+
import java.time.LocalDate
4+
import java.time.format.DateTimeFormatter
5+
import java.util.Locale
6+
7+
fun LocalDate.toPresentationFormat(): String {
8+
val formatter = DateTimeFormatter.ofPattern("yy.MM.dd E", Locale.KOREAN)
9+
return this.format(formatter)
10+
}

0 commit comments

Comments
 (0)