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 8af053fd4..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
@@ -89,7 +89,7 @@ internal fun NoticeDetailsScreen(
modifier = Modifier
.fillMaxWidth()
.horizontalPadding(),
- text = uiState.createdAt.text,
+ text = uiState.createdAt!!.text,
style = DmsTheme.typography.caption,
color = DmsTheme.colorScheme.onSurfaceVariant,
)
@@ -127,6 +127,13 @@ internal fun NoticeDetailsScreen(
}
}
-private val LocalDateTime?.text: String
- @Composable inline get() = "${this?.year}-${this?.monthValue}-${this?.dayOfMonth} ${this?.hour}:${this?.minute}"
+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
로그아웃