rev 1816 - trunk/Email-Store/t

[prev] [thread] [next] [lurker] [Date index for 2005/02/04]

From: simon
Subject: rev 1816 - trunk/Email-Store/t
Date: 10:02 on 04 Feb 2005
Author: simon
Date: 2005-02-04 10:02:38 +0000 (Fri, 04 Feb 2005)
New Revision: 1816

Modified:
   trunk/Email-Store/t/07date.t
Log:
Fix TZ issues (thanks to Scott McWhirter)


Modified: trunk/Email-Store/t/07date.t
===================================================================
--- trunk/Email-Store/t/07date.t	2005-02-04 05:33:56 UTC (rev 1815)
+++ trunk/Email-Store/t/07date.t	2005-02-04 10:02:38 UTC (rev 1816)
@@ -1,6 +1,11 @@
 use Test::More tests => 11;
 use File::Slurp;
 BEGIN { unlink("t/test.db"); }
+
+# Since the test e-mails were sent during BST we need to fake that it's BST now
+# Africa/Luanda is used because it doesn't have a different summertime offset
+$ENV{TZ} = 'Africa/Luanda';
+
 use Email::Store "dbi:SQLite:dbname=t/test.db";
 Email::Store->setup;
 ok(1, "Set up");

Generated at 13:00 on 04 Feb 2005 by mariachi 0.52