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 8ce47c9b1..830d3eff7 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 @@ -4,9 +4,11 @@ package com.fsck.k9.message.quote; import java.text.DateFormat; import java.util.Date; import java.util.Locale; +import java.util.TimeZone; import android.content.res.Resources; +import com.fsck.k9.K9; import com.fsck.k9.mail.Message; @@ -27,8 +29,11 @@ class QuoteHelper { final int timeStyle = DateFormat.LONG; Date date = message.getSentDate(); Locale locale = resources.getConfiguration().locale; - return DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale) - .format(date); + DateFormat dateFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale); + if (K9.hideTimeZone()) { + dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); + } + return dateFormat.format(date); } catch (Exception e) { return ""; } diff --git a/k9mail/src/main/res/values/strings.xml b/k9mail/src/main/res/values/strings.xml index aff490574..c6d0d2a76 100644 --- a/k9mail/src/main/res/values/strings.xml +++ b/k9mail/src/main/res/values/strings.xml @@ -342,7 +342,7 @@ Please submit bug reports, contribute new features and ask questions at Hide mail client Remove K-9 User-Agent from mail headers Hide timezone - Use UTC instead of local timezone in mail headers + Use UTC instead of local timezone in mail headers and reply quotes Hide subject in notifications Never When device is locked