diff --git a/feature/src/main/java/team/aliens/dms/android/feature/main/announcement/AnnouncementListScreen.kt b/feature/src/main/java/team/aliens/dms/android/feature/main/announcement/AnnouncementListScreen.kt
index c3d97aa95..ca1d4eaea 100644
--- a/feature/src/main/java/team/aliens/dms/android/feature/main/announcement/AnnouncementListScreen.kt
+++ b/feature/src/main/java/team/aliens/dms/android/feature/main/announcement/AnnouncementListScreen.kt
@@ -181,4 +181,11 @@ private fun NoticeCard(
}
private val LocalDateTime.text: String
- @Composable inline get() = "${this.year}-${this.monthValue}-${this.dayOfMonth} ${this.hour}:${this.minute}"
+ @Composable inline get() = stringResource(
+ id = R.string.format_notice_time,
+ this.year,
+ this.monthValue,
+ this.dayOfMonth,
+ this.hour,
+ this.minute,
+ )
diff --git a/feature/src/main/java/team/aliens/dms/android/feature/notice/NoticeDetailsScreen.kt b/feature/src/main/java/team/aliens/dms/android/feature/notice/NoticeDetailsScreen.kt
index efd483064..05541a3d1 100644
--- a/feature/src/main/java/team/aliens/dms/android/feature/notice/NoticeDetailsScreen.kt
+++ b/feature/src/main/java/team/aliens/dms/android/feature/notice/NoticeDetailsScreen.kt
@@ -23,6 +23,7 @@ import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.ramcosta.composedestinations.annotation.Destination
+import org.threeten.bp.LocalDateTime
import team.aliens.dms.android.core.designsystem.Scaffold
import team.aliens.dms.android.core.designsystem.DmsTheme
import team.aliens.dms.android.core.designsystem.DmsTopAppBar
@@ -88,7 +89,7 @@ internal fun NoticeDetailsScreen(
modifier = Modifier
.fillMaxWidth()
.horizontalPadding(),
- text = uiState.createdAt.toString(),
+ text = uiState.createdAt!!.text,
style = DmsTheme.typography.caption,
color = DmsTheme.colorScheme.onSurfaceVariant,
)
@@ -125,3 +126,14 @@ internal fun NoticeDetailsScreen(
}
}
}
+
+private val LocalDateTime.text: String
+ @Composable inline get() = stringResource(
+ id = R.string.format_notice_time,
+ this.year,
+ this.monthValue,
+ this.dayOfMonth,
+ this.hour,
+ this.minute,
+ )
+
diff --git a/feature/src/main/res/values/strings.xml b/feature/src/main/res/values/strings.xml
index 52108e59c..c3b6a9ad7 100644
--- a/feature/src/main/res/values/strings.xml
+++ b/feature/src/main/res/values/strings.xml
@@ -201,6 +201,8 @@
새로운 공지사항이 있습니다
공지사항이 없습니다
+
+ %d/%d/%d %d:%d
로그아웃