From 18cca0e45df1649f7b7bbc443c081e3ec5f5b10f Mon Sep 17 00:00:00 2001 From: Ben Moon Date: Fri, 15 Jan 2016 20:31:12 +0000 Subject: [PATCH] Update tests to correct timezone Using EST for tests - the times were given in UTC. --- t/SunInfo.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/SunInfo.t b/t/SunInfo.t index d881de70b..7c9e48058 100755 --- a/t/SunInfo.t +++ b/t/SunInfo.t @@ -5,10 +5,12 @@ use warnings; use Test::More; use DDG::Test::Goodie; use utf8; +use Test::MockTime qw(set_fixed_time); zci answer_type => 'sun_info'; zci is_cached => 0; +set_fixed_time('2014-08-01T00:00:00Z'); # Presume sun will rise in the morning and set at night year round in PA. my @now = (qr/^On.*Phoenixville, Pennsylvania.*AM.*PM\.$/, structured_answer => {