Short, local date format in locale form

This commit is contained in:
Philipp Heckel 2022-03-13 20:15:58 -04:00
parent bd8d61997d
commit 031f5c472d

View file

@ -78,7 +78,7 @@ class DetailAdapter(private val activity: Activity, private val repository: Repo
val context = itemView.context
val unmatchedTags = unmatchedTags(splitTags(notification.tags))
dateView.text = Date(notification.timestamp * 1000).toString()
dateView.text = formatDateShort(notification.timestamp)
messageView.text = formatMessage(notification)
newDotImageView.visibility = if (notification.notificationId == 0) View.GONE else View.VISIBLE
itemView.setOnClickListener { onClick(notification) }