Test have today in UTC

It seems that date('now'), at least in sqlite, is in UTC.  So, we want
the tests to match that.

There are still timing bugs possible here, but with this change, they
should only occur if you run the test right at 23:58 or 23:59 UTC. :)
This commit is contained in:
Bradley M. Kuhn 2015-12-20 16:39:00 -08:00
parent c8bbcc05e4
commit 4f42fe50d2

View file

@ -11,7 +11,7 @@ use Test::Exception;
use Scalar::Util qw(looks_like_number reftype);
use POSIX qw(strftime);
# Yes, this may cause tests to fail if you run them near midnight. :)
my $today = strftime "%Y-%m-%d", localtime;
my $today = strftime "%Y-%m-%d", gmtime;
=pod