diff --git a/src/com/android/email/mail/internet/MimeMessage.java b/src/com/android/email/mail/internet/MimeMessage.java index bf76748da..d032e5256 100644 --- a/src/com/android/email/mail/internet/MimeMessage.java +++ b/src/com/android/email/mail/internet/MimeMessage.java @@ -8,6 +8,7 @@ import java.io.OutputStream; import java.io.OutputStreamWriter; import java.text.SimpleDateFormat; import java.util.Date; +import java.util.Locale; import java.util.Stack; import org.apache.james.mime4j.BodyDescriptor; @@ -36,7 +37,7 @@ public class MimeMessage extends Message { protected Address[] mBcc; protected Address[] mReplyTo; protected Date mSentDate; - protected SimpleDateFormat mDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z"); + protected SimpleDateFormat mDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z", Locale.US); protected Body mBody; protected int mSize; diff --git a/src/com/android/email/mail/store/ImapResponseParser.java b/src/com/android/email/mail/store/ImapResponseParser.java index b631ebf36..5c472281a 100644 --- a/src/com/android/email/mail/store/ImapResponseParser.java +++ b/src/com/android/email/mail/store/ImapResponseParser.java @@ -10,6 +10,7 @@ import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; +import java.util.Locale; import android.util.Config; import android.util.Log; @@ -20,7 +21,7 @@ import com.android.email.PeekableInputStream; import com.android.email.mail.MessagingException; public class ImapResponseParser { - SimpleDateFormat mDateTimeFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss Z"); + SimpleDateFormat mDateTimeFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss Z", Locale.US); PeekableInputStream mIn; InputStream mActiveLiteral;