mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
. Applied patch from dumbfile which fixes issue 307 and issue 265 related to date format when running on a device with a non US locale
This commit is contained in:
parent
73d5e16178
commit
db426c44b7
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user