From a349398f4f16b1ca9459dcb62eb333f48db49711 Mon Sep 17 00:00:00 2001 From: cketti Date: Sat, 27 Feb 2016 07:13:05 +0100 Subject: [PATCH] Explicitly set time zone when testing date formatting This should fix the test failure on CloudBees. --- .../test/java/com/fsck/k9/mail/store/imap/ImapFolderTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/k9mail-library/src/test/java/com/fsck/k9/mail/store/imap/ImapFolderTest.java b/k9mail-library/src/test/java/com/fsck/k9/mail/store/imap/ImapFolderTest.java index 000053a90..d435c3243 100644 --- a/k9mail-library/src/test/java/com/fsck/k9/mail/store/imap/ImapFolderTest.java +++ b/k9mail-library/src/test/java/com/fsck/k9/mail/store/imap/ImapFolderTest.java @@ -9,6 +9,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.TimeZone; import com.fsck.k9.mail.FetchProfile; import com.fsck.k9.mail.FetchProfile.Item; @@ -525,6 +526,7 @@ public class ImapFolderTest { @Test public void getMessages_withDateConstraint() throws Exception { + TimeZone.setDefault(TimeZone.getTimeZone("UTC")); ImapFolder folder = createFolder("Folder"); prepareImapFolderForOpen(OPEN_MODE_RW); List imapResponses = asList(