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:
parent
c8bbcc05e4
commit
4f42fe50d2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue