export PATH=$MH_TEST_DIR/bin:$PATH
export MH_TEST_COMMON=$PWD/common.sh
+#### Some tests use mhshow to display headers. It relies on mhl's
+#### default mhl.headers, which runs the date through the pretty
+#### function. That displays the date with the user's current
+#### timezone. All of the tests expect GMT, so fool them into using
+#### that.
+export TZ=GMT
+
[ -d $MH_TEST_DIR ] || ./setup-test
# clean old test data
msgfile=$(mhpath new)
msgnum=$(basename $msgfile)
cat > $msgfile <<EOF
-Date: Sun, 18 Dec 2005 00:52:39 +0100
+Date: Sun, 18 Dec 2005 00:52:39 +0000
From: foo@example.edu
To: bar@example.edu
Subject: test
cat > $expected <<EOF
(Message inbox:11)
-Date: Sun, 18 Dec 2005 00:52:39 +0100
+Date: Sun, 18 Dec 2005 00:52:39 GMT
To: bar@example.edu
From: foo@example.edu
Subject: test
# check mhshow
cat > $expected <<EOF
-Date: Sun, 18 Dec 2005 00:52:39 +0100
+Date: Sun, 18 Dec 2005 00:52:39 GMT
To: bar@example.edu
From: foo@example.edu
Subject: test
Subject: test
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
-Date: Sun, 18 Dec 2005 00:52:39 +0100
+Date: Sun, 18 Dec 2005 00:52:39 +0000
=3D
=3d
# check it
cat > $expected <<EOF
-Date: Sun, 18 Dec 2005 00:52:39 +0100
+Date: Sun, 18 Dec 2005 00:52:39 GMT
To: bar@example.edu
From: foo@example.edu
Subject: test