[PATCH v3 5/5] test: Set all times to UTC

Michal Sojka sojkam1 at fel.cvut.cz
Wed Jun 9 23:48:04 PDT 2010


In order to have repeatable test suite, all times in messages are set
to UTC time zone to match the time zone (TZ variable) set in
test-lib.sh.

Signed-off-by: Michal Sojka <sojkam1 at fel.cvut.cz>
---
 test/t0004-thread-naming.sh        |   32 ++++++++++++++--------------
 test/t0005-reply.sh                |   28 ++++++++++++------------
 test/t0010-from-line-heuristics.sh |   40 ++++++++++++++++++------------------
 test/t0012-encoding-issues.sh      |    2 +-
 test/test-lib.sh                   |    2 +-
 5 files changed, 52 insertions(+), 52 deletions(-)

diff --git a/test/t0004-thread-naming.sh b/test/t0004-thread-naming.sh
index 88216f2..c77f726 100755
--- a/test/t0004-thread-naming.sh
+++ b/test/t0004-thread-naming.sh
@@ -3,17 +3,17 @@ test_description="naming of threads with changing subject"
 . ./test-lib.sh
 test_expect_success 'Generate some messages' '
 add_message "[subject]=\"thread-naming: Initial thread subject\"" \
-            "[date]=\"Fri, 05 Jan 2001 15:43:56 -0800\"" &&
+            "[date]=\"Fri, 05 Jan 2001 15:43:56 -0000\"" &&
 first=${gen_msg_cnt} &&
 parent=${gen_msg_id} &&
 add_message "[subject]=\"thread-naming: Older changed subject\"" \
-            "[date]=\"Sat, 06 Jan 2001 15:43:56 -0800\"" \
+            "[date]=\"Sat, 06 Jan 2001 15:43:56 -0000\"" \
             "[in-reply-to]=\<$parent\>" &&
 add_message "[subject]=\"thread-naming: Newer changed subject\"" \
-            "[date]=\"Sun, 07 Jan 2001 15:43:56 -0800\"" \
+            "[date]=\"Sun, 07 Jan 2001 15:43:56 -0000\"" \
             "[in-reply-to]=\<$parent\>" &&
 add_message "[subject]=\"thread-naming: Final thread subject\"" \
-            "[date]=\"Mon, 08 Jan 2001 15:43:56 -0800\"" \
+            "[date]=\"Mon, 08 Jan 2001 15:43:56 -0000\"" \
             "[in-reply-to]=\<$parent\>" &&
 final=${gen_msg_id}
 
@@ -43,7 +43,7 @@ pass_if_equal "$output" "thread:XXX   2001-01-07 [2/4] Notmuch Test Suite; threa
 '
 test_expect_success "Ignore added reply prefix (Re:)" '
 add_message "[subject]=\"Re: thread-naming: Initial thread subject\"" \
-            "[date]=\"Tue, 09 Jan 2001 15:43:45 -0800\"" \
+            "[date]=\"Tue, 09 Jan 2001 15:43:45 -0000\"" \
             "[in-reply-to]=\<$parent\>" &&
 output=$($NOTMUCH search --sort=newest-first thread-naming and tag:inbox | notmuch_search_sanitize) &&
 pass_if_equal "$output" "thread:XXX   2001-01-09 [3/5] Notmuch Test Suite; thread-naming: Initial thread subject (inbox unread)"
@@ -51,7 +51,7 @@ pass_if_equal "$output" "thread:XXX   2001-01-09 [3/5] Notmuch Test Suite; threa
 '
 test_expect_success "Ignore added reply prefix (Aw:)" '
 add_message "[subject]=\"Aw: thread-naming: Initial thread subject\"" \
-            "[date]=\"Wed, 10 Jan 2001 15:43:45 -0800\"" \
+            "[date]=\"Wed, 10 Jan 2001 15:43:45 -0000\"" \
             "[in-reply-to]=\<$parent\>" &&
 output=$($NOTMUCH search --sort=newest-first thread-naming and tag:inbox | notmuch_search_sanitize) &&
 pass_if_equal "$output" "thread:XXX   2001-01-10 [4/6] Notmuch Test Suite; thread-naming: Initial thread subject (inbox unread)"
@@ -59,7 +59,7 @@ pass_if_equal "$output" "thread:XXX   2001-01-10 [4/6] Notmuch Test Suite; threa
 '
 test_expect_success "Ignore added reply prefix (Vs:)" '
 add_message "[subject]=\"Vs: thread-naming: Initial thread subject\"" \
-            "[date]=\"Thu, 11 Jan 2001 15:43:45 -0800\"" \
+            "[date]=\"Thu, 11 Jan 2001 15:43:45 -0000\"" \
             "[in-reply-to]=\<$parent\>" &&
 output=$($NOTMUCH search --sort=newest-first thread-naming and tag:inbox | notmuch_search_sanitize) &&
 pass_if_equal "$output" "thread:XXX   2001-01-11 [5/7] Notmuch Test Suite; thread-naming: Initial thread subject (inbox unread)"
@@ -67,7 +67,7 @@ pass_if_equal "$output" "thread:XXX   2001-01-11 [5/7] Notmuch Test Suite; threa
 '
 test_expect_success "Ignore added reply prefix (Sv:)" '
 add_message "[subject]=\"Sv: thread-naming: Initial thread subject\"" \
-            "[date]=\"Fri, 12 Jan 2001 15:43:45 -0800\"" \
+            "[date]=\"Fri, 12 Jan 2001 15:43:45 -0000\"" \
             "[in-reply-to]=\<$parent\>" &&
 output=$($NOTMUCH search --sort=newest-first thread-naming and tag:inbox | notmuch_search_sanitize) &&
 pass_if_equal "$output" "thread:XXX   2001-01-12 [6/8] Notmuch Test Suite; thread-naming: Initial thread subject (inbox unread)"
@@ -81,7 +81,7 @@ Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-05) (unread)
 Subject: thread-naming: Initial thread subject
 From: Notmuch Test Suite <test_suite at notmuchmail.org>
 To: Notmuch Test Suite <test_suite at notmuchmail.org>
-Date: Fri, 05 Jan 2001 15:43:56 -0800
+Date: Fri, 05 Jan 2001 15:43:56 -0000
 header}
 body{
 part{ ID: 1, Content-type: text/plain
@@ -95,7 +95,7 @@ Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-06) (inbox unread)
 Subject: thread-naming: Older changed subject
 From: Notmuch Test Suite <test_suite at notmuchmail.org>
 To: Notmuch Test Suite <test_suite at notmuchmail.org>
-Date: Sat, 06 Jan 2001 15:43:56 -0800
+Date: Sat, 06 Jan 2001 15:43:56 -0000
 header}
 body{
 part{ ID: 1, Content-type: text/plain
@@ -109,7 +109,7 @@ Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-07) (inbox unread)
 Subject: thread-naming: Newer changed subject
 From: Notmuch Test Suite <test_suite at notmuchmail.org>
 To: Notmuch Test Suite <test_suite at notmuchmail.org>
-Date: Sun, 07 Jan 2001 15:43:56 -0800
+Date: Sun, 07 Jan 2001 15:43:56 -0000
 header}
 body{
 part{ ID: 1, Content-type: text/plain
@@ -123,7 +123,7 @@ Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-08) (unread)
 Subject: thread-naming: Final thread subject
 From: Notmuch Test Suite <test_suite at notmuchmail.org>
 To: Notmuch Test Suite <test_suite at notmuchmail.org>
-Date: Mon, 08 Jan 2001 15:43:56 -0800
+Date: Mon, 08 Jan 2001 15:43:56 -0000
 header}
 body{
 part{ ID: 1, Content-type: text/plain
@@ -137,7 +137,7 @@ Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-09) (inbox unread)
 Subject: Re: thread-naming: Initial thread subject
 From: Notmuch Test Suite <test_suite at notmuchmail.org>
 To: Notmuch Test Suite <test_suite at notmuchmail.org>
-Date: Tue, 09 Jan 2001 15:43:45 -0800
+Date: Tue, 09 Jan 2001 15:43:45 -0000
 header}
 body{
 part{ ID: 1, Content-type: text/plain
@@ -151,7 +151,7 @@ Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-10) (inbox unread)
 Subject: Aw: thread-naming: Initial thread subject
 From: Notmuch Test Suite <test_suite at notmuchmail.org>
 To: Notmuch Test Suite <test_suite at notmuchmail.org>
-Date: Wed, 10 Jan 2001 15:43:45 -0800
+Date: Wed, 10 Jan 2001 15:43:45 -0000
 header}
 body{
 part{ ID: 1, Content-type: text/plain
@@ -165,7 +165,7 @@ Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-11) (inbox unread)
 Subject: Vs: thread-naming: Initial thread subject
 From: Notmuch Test Suite <test_suite at notmuchmail.org>
 To: Notmuch Test Suite <test_suite at notmuchmail.org>
-Date: Thu, 11 Jan 2001 15:43:45 -0800
+Date: Thu, 11 Jan 2001 15:43:45 -0000
 header}
 body{
 part{ ID: 1, Content-type: text/plain
@@ -179,7 +179,7 @@ Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-12) (inbox unread)
 Subject: Sv: thread-naming: Initial thread subject
 From: Notmuch Test Suite <test_suite at notmuchmail.org>
 To: Notmuch Test Suite <test_suite at notmuchmail.org>
-Date: Fri, 12 Jan 2001 15:43:45 -0800
+Date: Fri, 12 Jan 2001 15:43:45 -0000
 header}
 body{
 part{ ID: 1, Content-type: text/plain
diff --git a/test/t0005-reply.sh b/test/t0005-reply.sh
index 650d5bd..97e1006 100755
--- a/test/t0005-reply.sh
+++ b/test/t0005-reply.sh
@@ -6,7 +6,7 @@ test_expect_success "Basic reply" '
 add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=test_suite at notmuchmail.org \
              [subject]=notmuch-reply-test \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"basic reply test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -17,7 +17,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > basic reply test"
 
 '
@@ -25,7 +25,7 @@ test_expect_success "Multiple recipients" '
 add_message "[from]=\"Sender <sender at example.com>\"" \
             "[to]=\"test_suite at notmuchmail.org, Someone Else <someone at example.com>\"" \
              [subject]=notmuch-reply-test \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"Multiple recipients\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -36,7 +36,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > Multiple recipients"
 
 '
@@ -45,7 +45,7 @@ add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=test_suite at notmuchmail.org \
             "[cc]=\"Other Parties <cc at example.com>\"" \
              [subject]=notmuch-reply-test \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"reply with CC\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -57,7 +57,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > reply with CC"
 
 '
@@ -65,7 +65,7 @@ test_expect_success "Reply from alternate address" '
 add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=test_suite_other at notmuchmail.org \
              [subject]=notmuch-reply-test \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"reply from alternate address\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -76,7 +76,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > reply from alternate address"
 
 '
@@ -84,7 +84,7 @@ test_expect_success "Support for Reply-To" '
 add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=test_suite at notmuchmail.org \
              [subject]=notmuch-reply-test \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"support for reply-to\"" \
             "[reply-to]=\"Sender <elsewhere at example.com>\"" &&
 
@@ -96,7 +96,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > support for reply-to"
 
 '
@@ -104,7 +104,7 @@ test_expect_success "Un-munging Reply-To" '
 add_message "[from]=\"Sender <sender at example.com>\"" \
             "[to]=\"Some List <list at example.com>\"" \
              [subject]=notmuch-reply-test \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"Un-munging Reply-To\"" \
             "[reply-to]=\"Evil Munging List <list at example.com>\"" &&
 
@@ -116,13 +116,13 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > Un-munging Reply-To"
 '
 
 test_expect_success "Message with header of exactly 200 bytes" '
 add_message "[subject]=\"This subject is exactly 200 bytes in length. Other than its length there is not much of note here. Note that the length of 200 bytes includes the Subject: and Re: prefixes with two spaces\"" \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"200-byte header\"" &&
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
 pass_if_equal "$output" "From: Notmuch Test Suite <test_suite at notmuchmail.org>
@@ -131,7 +131,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Notmuch Test Suite <test_suite at notmuchmail.org> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Notmuch Test Suite <test_suite at notmuchmail.org> wrote:
 > 200-byte header"
 '
 test_done
diff --git a/test/t0010-from-line-heuristics.sh b/test/t0010-from-line-heuristics.sh
index bd0e887..89702b5 100755
--- a/test/t0010-from-line-heuristics.sh
+++ b/test/t0010-from-line-heuristics.sh
@@ -6,7 +6,7 @@ test_expect_success "Magic from guessing (nothing to go on)" '
 add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=mailinglist at notmuchmail.org \
              [subject]=notmuch-reply-test \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -17,7 +17,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 
 '
@@ -26,7 +26,7 @@ add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=mailinglist at notmuchmail.org \
              [subject]=notmuch-reply-test \
             "[header]=\"Envelope-To: test_suite_other at notmuchmail.org\"" \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -37,7 +37,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 
 '
@@ -46,7 +46,7 @@ add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=mailinglist at notmuchmail.org \
              [subject]=notmuch-reply-test \
             "[header]=\"X-Original-To: test_suite_other at notmuchmail.org\"" \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -57,7 +57,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 
 '
@@ -68,7 +68,7 @@ add_message "[from]=\"Sender <sender at example.com>\"" \
             "[header]=\"Received: from mail.example.com (mail.example.com [1.1.1.1])\
         by mail.notmuchmail.org (some MTA) with ESMTP id 12345678\
         for <test_suite_other at notmuchmail.org>; Sat, 10 Apr 2010 07:54:51 -0400 (EDT)\"" \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -79,7 +79,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 
 '
@@ -90,7 +90,7 @@ add_message "[from]=\"Sender <sender at example.com>\"" \
             "[header]=\"Received: from mail.example.com (mail.example.com [1.1.1.1])\
         by mail.otherdomain.org (some MTA) with ESMTP id 12345678\
         Sat, 10 Apr 2010 07:54:51 -0400 (EDT)\"" \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -101,7 +101,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 
 
@@ -114,7 +114,7 @@ test_expect_success "Magic from guessing (nothing to go on)" '
 add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=mailinglist at notmuchmail.org \
              [subject]=notmuch-reply-test \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -125,7 +125,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 
 '
@@ -134,7 +134,7 @@ add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=mailinglist at notmuchmail.org \
              [subject]=notmuch-reply-test \
             "[header]=\"Envelope-To: test_suite_other at notmuchmail.org\"" \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -145,7 +145,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 
 '
@@ -154,7 +154,7 @@ add_message "[from]=\"Sender <sender at example.com>\"" \
              [to]=mailinglist at notmuchmail.org \
              [subject]=notmuch-reply-test \
             "[header]=\"X-Original-To: test_suite_other at notmuchmail.org\"" \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -165,7 +165,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 
 '
@@ -176,7 +176,7 @@ add_message "[from]=\"Sender <sender at example.com>\"" \
             "[header]=\"Received: from mail.example.com (mail.example.com [1.1.1.1])\
         by mail.notmuchmail.org (some MTA) with ESMTP id 12345678\
         for <test_suite_other at notmuchmail.org>; Sat, 10 Apr 2010 07:54:51 -0400 (EDT)\"" \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -187,7 +187,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 
 '
@@ -198,7 +198,7 @@ add_message "[from]=\"Sender <sender at example.com>\"" \
             "[header]=\"Received: from mail.example.com (mail.example.com [1.1.1.1])\
         by mail.otherdomain.org (some MTA) with ESMTP id 12345678\
         Sat, 10 Apr 2010 07:54:51 -0400 (EDT)\"" \
-            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0800\"" \
+            "[date]=\"Tue, 05 Jan 2010 15:43:56 -0000\"" \
             "[body]=\"from guessing test\"" &&
 
 output=$($NOTMUCH reply id:${gen_msg_id}) &&
@@ -209,7 +209,7 @@ Bcc: test_suite at notmuchmail.org
 In-Reply-To: <${gen_msg_id}>
 References: <${gen_msg_id}>
 
-On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender at example.com> wrote:
+On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender at example.com> wrote:
 > from guessing test"
 '
 test_done
diff --git a/test/t0012-encoding-issues.sh b/test/t0012-encoding-issues.sh
index 643ba1b..6a6ceda 100755
--- a/test/t0012-encoding-issues.sh
+++ b/test/t0012-encoding-issues.sh
@@ -12,7 +12,7 @@ Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-05) (inbox unread)
 Subject: Test message #1
 From: Notmuch Test Suite <test_suite at notmuchmail.org>
 To: Notmuch Test Suite <test_suite at notmuchmail.org>
-Date: Tue, 05 Jan 2001 15:43:57 -0800
+Date: Tue, 05 Jan 2001 15:43:57 -0000
 header}
 body{
 part{ ID: 1, Content-type: text/plain
diff --git a/test/test-lib.sh b/test/test-lib.sh
index d045820..5ae916c 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -311,7 +311,7 @@ generate_message ()
     fi
 
     if [ -z "${template[date]}" ]; then
-	template[date]="Tue, 05 Jan 2001 15:43:57 -0800"
+	template[date]="Tue, 05 Jan 2001 15:43:57 -0000"
     fi
 
     additional_headers=""
-- 
1.7.1.3.g75e44



More information about the notmuch mailing list