From 4f42fe50d2724787807f194ef67ce56636041da7 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sun, 20 Dec 2015 16:39:00 -0800 Subject: [PATCH] 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. :) --- Supporters/t/Supporters.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Supporters/t/Supporters.t b/Supporters/t/Supporters.t index 236fe52..b145d12 100644 --- a/Supporters/t/Supporters.t +++ b/Supporters/t/Supporters.t @@ -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