Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db426c44 authored by Bao-Long Nguyen-Trong's avatar Bao-Long Nguyen-Trong
Browse files

. Applied patch from dumbfile which fixes issue 307 and issue 265 related to...

. 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
parent 73d5e161
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
 
+2 −1
Original line number Diff line number Diff line
@@ -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;