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..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
@@ -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;
@@ -26,9 +28,16 @@ class QuoteHelper {
final int dateStyle = DateFormat.LONG;
final int timeStyle = DateFormat.LONG;
Date date = message.getSentDate();
- Locale locale = resources.getConfiguration().locale;
- return DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale)
- .format(date);
+
+ DateFormat dateFormat;
+ if (K9.hideTimeZone()) {
+ dateFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, Locale.ROOT);
+ dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
+ } else {
+ Locale locale = resources.getConfiguration().locale;
+ dateFormat = DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale);
+ }
+ 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..512c8b7d3 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 header
Hide subject in notifications
Never
When device is locked