mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 13:38:26 +00:00
replace unlocalized 'at' in message details date
Making this a string resource has the potential for crashes. Leaving it out completely is a little confusing. The dash is the perfect solution - until a better date formatter is used. Closes #2215
This commit is contained in:
parent
0a61534e03
commit
3f0932ff7b
@ -205,9 +205,9 @@ public class ConversationFragment extends ListFragment
|
||||
String dateFormatPattern;
|
||||
|
||||
if (DateFormat.is24HourFormat(getActivity().getApplicationContext())) {
|
||||
dateFormatPattern = "EEE MMM d, yyyy 'at' HH:mm:ss zzz";
|
||||
dateFormatPattern = "EEE MMM d, yyyy '-' HH:mm:ss zzz";
|
||||
} else {
|
||||
dateFormatPattern = "EEE MMM d, yyyy 'at' hh:mm:ss a zzz";
|
||||
dateFormatPattern = "EEE MMM d, yyyy '-' hh:mm:ss a zzz";
|
||||
}
|
||||
|
||||
SimpleDateFormat dateFormatter = new SimpleDateFormat(dateFormatPattern);
|
||||
|
Loading…
x
Reference in New Issue
Block a user