mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
"Seen by" uses 12h time (Fixes #1378)
DateUtils.FORMAT_SHOW_TIME has to be used for i18n to be effective on DateUtils.getRelativeDateTimeString(), do not ask me why. Also internal switching of language does not have effect on this method, you'll have to restart the application.
This commit is contained in:
parent
ca37895619
commit
d49fcb80fc
@ -12,6 +12,7 @@ Improvements 🙌:
|
||||
Bugfix 🐛:
|
||||
- After jump to unread, newer messages are never loaded (#1008)
|
||||
- Fix issues with FontScale switch (#69, #645)
|
||||
- "Seen by" uses 12h time (#1378)
|
||||
|
||||
Translations 🗣:
|
||||
-
|
||||
|
@ -45,11 +45,12 @@ class VectorDateFormatter @Inject constructor(private val context: Context,
|
||||
if (time == null) {
|
||||
return ""
|
||||
}
|
||||
return DateUtils.getRelativeDateTimeString(context,
|
||||
time,
|
||||
DateUtils.DAY_IN_MILLIS,
|
||||
2 * DateUtils.DAY_IN_MILLIS,
|
||||
DateUtils.FORMAT_SHOW_WEEKDAY
|
||||
return DateUtils.getRelativeDateTimeString(
|
||||
context,
|
||||
time,
|
||||
DateUtils.DAY_IN_MILLIS,
|
||||
2 * DateUtils.DAY_IN_MILLIS,
|
||||
DateUtils.FORMAT_SHOW_WEEKDAY or DateUtils.FORMAT_SHOW_TIME
|
||||
).toString()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user