diff --git a/k9mail/src/main/java/com/fsck/k9/message/quote/QuoteHelper.java b/k9mail/src/main/java/com/fsck/k9/message/quote/QuoteHelper.java index 599bb2526..80efc1753 100644 --- a/k9mail/src/main/java/com/fsck/k9/message/quote/QuoteHelper.java +++ b/k9mail/src/main/java/com/fsck/k9/message/quote/QuoteHelper.java @@ -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);