From: Sven Schöling Date: Thu, 9 Nov 2017 13:00:25 +0000 (+0100) Subject: DATEV::CSV: DateTime->now_local benutzen X-Git-Tag: release-3.5.4~633 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=991d36cb2374ea8f1b5ed82b396d4d748fe11313;p=kivitendo-erp.git DATEV::CSV: DateTime->now_local benutzen --- diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index d7bb9993c..3d81e6274 100644 --- a/SL/DATEV/CSV.pm +++ b/SL/DATEV/CSV.pm @@ -272,8 +272,8 @@ sub header { my @header; # we can safely set these defaults - # TODO use Helper::DateTime and get length_of_accounts from DATEV.pm - my $today = DateTime->now(time_zone => "local"); + # TODO get length_of_accounts from DATEV.pm + my $today = DateTime->now_local; my $created_on = $today->ymd('') . $today->hms('') . '000'; my $length_of_accounts = length(SL::DB::Manager::Chart->get_first(where => [charttype => 'A'])->accno) // 4; my $default_curr = SL::DB::Default->get_default_currency;