From cd5739fff65a66e8d838d7159c66e6c324b4f54e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 26 Feb 2016 14:23:39 +0100 Subject: [PATCH] =?utf8?q?SelfTests=20falscher=20Zeitraum=20f=C3=BCr=20Sta?= =?utf8?q?ndard-Tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/BackgroundJob/SelfTest/Transactions.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/SL/BackgroundJob/SelfTest/Transactions.pm b/SL/BackgroundJob/SelfTest/Transactions.pm index 0333ec9b3..f57c3fded 100644 --- a/SL/BackgroundJob/SelfTest/Transactions.pm +++ b/SL/BackgroundJob/SelfTest/Transactions.pm @@ -43,12 +43,8 @@ sub _setup { my ($self) = @_; # TODO FIXME calc dates better, unless this is wanted -# my $year = - #$self->fromdate(DateTime->new(day => 1, month => 1, year => DateTime->today->year)); - #$self->todate($self->fromdate->clone->add(years => 1)->add(days => -1)); - $self->fromdate(DateTime->new(day => 1, month => 1, year => 2015)); + $self->fromdate(DateTime->new(day => 1, month => 1, year => DateTime->today->year)); $self->todate($self->fromdate->clone->add(years => 1)->add(days => -1)); - $main::lxdebug->message(0, 'hier und dort:' . $self->fromdate . ' mit ' . $self->todate); $self->dbh($::form->get_standard_dbh); } -- 2.20.1