From 991d36cb2374ea8f1b5ed82b396d4d748fe11313 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 9 Nov 2017 14:00:25 +0100 Subject: [PATCH] DATEV::CSV: DateTime->now_local benutzen --- SL/DATEV/CSV.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1