From d21b0c3c88edff854523980a8ef09b2f68c0b77a Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Tue, 24 Oct 2023 16:58:38 +0200 Subject: [PATCH] MT#58485 invoice: use UTC tz when filtering for start_time Change-Id: I967d06f17418c352fb8ae173e8a8af864b33ae66 (cherry picked from commit f6b934bfc6d18113336eec24d1207fcb94ef215b) --- lib/NGCP/Panel/Utils/Invoice.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Utils/Invoice.pm b/lib/NGCP/Panel/Utils/Invoice.pm index 2cd67cbf22..8d4f5db6cb 100644 --- a/lib/NGCP/Panel/Utils/Invoice.pm +++ b/lib/NGCP/Panel/Utils/Invoice.pm @@ -65,8 +65,8 @@ sub create_invoice{ contract => $customer, stime => $stime, etime => $etime,); - $stime = $balance->start; - $etime = $balance->end; + $stime = NGCP::Panel::Utils::DateTime::convert_tz($balance->start,undef,'UTC',$c); + $etime = NGCP::Panel::Utils::DateTime::convert_tz($balance->end,undef,'UTC',$c); my $bm_actual = NGCP::Panel::Utils::BillingMappings::get_actual_billing_mapping( c => $c, contract => $customer,