From aa65b721b889679f69fab62bfc49387b4da1678f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 4 Oct 2011 20:03:08 +0100 Subject: [PATCH] tests: eliminate dependency on the DateTime module by using POSIX::strftime --- testcases/complete-run.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testcases/complete-run.pl b/testcases/complete-run.pl index aa32557d..04130ec8 100755 --- a/testcases/complete-run.pl +++ b/testcases/complete-run.pl @@ -16,7 +16,6 @@ use AnyEvent; use IO::Scalar; # not in core :\ use File::Temp qw(tempfile tempdir); use v5.10; -use DateTime; use Data::Dumper; use Cwd qw(abs_path); use Proc::Background; @@ -86,7 +85,7 @@ my @testfiles = @ARGV; # 2: create an output directory for this test-run my $outdir = "testsuite-"; -$outdir .= DateTime->now->strftime("%Y-%m-%d-%H-%M-%S-"); +$outdir .= POSIX::strftime("%Y-%m-%d-%H-%M-%S-", localtime()); $outdir .= `git describe --tags`; chomp($outdir); mkdir($outdir) or die "Could not create $outdir"; -- 2.39.5