From 756863c7313e6b17812b9ca89fca3d6281564b61 Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 26 Mar 2017 22:23:23 +0200 Subject: [PATCH] Cleanup --- .../main/java/com/fsck/k9/message/quote/QuoteHelper.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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);