mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-30 20:45:49 +00:00
android, desktop: fix previous years display on chat view (#5486)
This commit is contained in:
@@ -2540,7 +2540,7 @@ fun getTimestampDateText(t: Instant): String {
|
||||
val time = t.toLocalDateTime(tz).toJavaLocalDateTime()
|
||||
val weekday = time.format(DateTimeFormatter.ofPattern("EEE"))
|
||||
val dayMonthYear = time.format(DateTimeFormatter.ofPattern(
|
||||
if (Clock.System.now().toLocalDateTime(tz).year == time.year) "d MMM" else "d MMM YYYY")
|
||||
if (Clock.System.now().toLocalDateTime(tz).year == time.year) "d MMM" else "d MMM yyyy")
|
||||
)
|
||||
|
||||
return "$weekday, $dayMonthYear"
|
||||
|
||||
Reference in New Issue
Block a user