mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
Show date and year for ancient (> 1 year old) messages
The timestamp shown for very old messages only includes the time without a date at all. Fix it. FREEBIE.
This commit is contained in:
parent
d979593cbb
commit
609e69a801
@ -43,7 +43,7 @@ public class DateUtils extends android.text.format.DateUtils {
|
||||
} else if (isWithinYear(millis)) {
|
||||
formatFlags |= DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_NO_YEAR | DateUtils.FORMAT_ABBREV_ALL;
|
||||
} else {
|
||||
formatFlags |= DateUtils.FORMAT_NUMERIC_DATE;
|
||||
formatFlags |= DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_ABBREV_ALL;
|
||||
}
|
||||
}
|
||||
return DateUtils.formatDateTime(c, millis, formatFlags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user