From 30d31c70741bc1b75e0c38b95a516cbfba5eb20f Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 26 May 2011 04:32:26 +0200 Subject: [PATCH] Explicitly use Locale.US when dealing with dates in message headers --- src/com/fsck/k9/mail/store/WebDavStore.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/mail/store/WebDavStore.java b/src/com/fsck/k9/mail/store/WebDavStore.java index 0f8714a36..81a498f25 100644 --- a/src/com/fsck/k9/mail/store/WebDavStore.java +++ b/src/com/fsck/k9/mail/store/WebDavStore.java @@ -50,6 +50,7 @@ import java.util.Date; import java.util.HashMap; import java.util.LinkedList; import java.util.List; +import java.util.Locale; import java.util.Stack; import java.util.zip.GZIPInputStream; @@ -2195,8 +2196,8 @@ public class WebDavStore extends Store { String date = data.get(header); date = date.substring(0, date.length() - 1); - DateFormat dfInput = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); - DateFormat dfOutput = new SimpleDateFormat("EEE, d MMM yy HH:mm:ss Z"); + DateFormat dfInput = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS", Locale.US); + DateFormat dfOutput = new SimpleDateFormat("EEE, d MMM yy HH:mm:ss Z", Locale.US); String tempDate = ""; try {