chore: do not show "today" next to today timestamps

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2025-03-21 18:57:34 +01:00
parent 879ddf03d6
commit 2ea495f401
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ fun formatLongAsTime(time: Long): String {
)
val relativeTime = DateFormat.getTimeInstance(DateFormat.SHORT).format(date)
if (DateUtils.isToday(time)) {
return relativeTime
}
"$relativeDate $relativeTime"
} else {
val absoluteDate = DateFormat.getDateInstance(DateFormat.SHORT).format(date)