Cleanup
This commit is contained in:
parent
b1f9b9ac6c
commit
756863c731
1 changed files with 3 additions and 4 deletions
|
@ -28,14 +28,13 @@ class QuoteHelper {
|
|||
final int dateStyle = DateFormat.LONG;
|
||||
final int timeStyle = DateFormat.LONG;
|
||||
Date date = message.getSentDate();
|
||||
|
||||
DateFormat dateFormat;
|
||||
Locale locale;
|
||||
if (K9.hideTimeZone()) {
|
||||
locale=Locale.ROOT;
|
||||
dateFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale);
|
||||
dateFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, Locale.ROOT);
|
||||
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
} else {
|
||||
locale = resources.getConfiguration().locale;
|
||||
Locale locale = resources.getConfiguration().locale;
|
||||
dateFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale);
|
||||
}
|
||||
return dateFormat.format(date);
|
||||
|
|
Loading…
Reference in a new issue