From c1125397e6c657bfc46118ca9ea8ead67bba3e94 Mon Sep 17 00:00:00 2001 From: PhanThanhTrung Date: Wed, 20 Mar 2024 15:56:33 +0700 Subject: [PATCH] update datetime format for billing report --- cope2n-api/fwd_api/utils/accuracy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cope2n-api/fwd_api/utils/accuracy.py b/cope2n-api/fwd_api/utils/accuracy.py index 6fa60d9..ef5cc93 100755 --- a/cope2n-api/fwd_api/utils/accuracy.py +++ b/cope2n-api/fwd_api/utils/accuracy.py @@ -744,8 +744,8 @@ def create_billing_data(subscription_requests): _sub = map_subsidiary_short_to_long(request.redemption_id[:2]) redemption_id = request.redemption_id - format_to_time = '%m/%d/%Y %H:%M' - format_to_date = '%m/%d/%Y' + format_to_time = '%Y/%m/%d %H:%M' + format_to_date = '%Y/%m/%d' format_to_month = '%B %Y' naive_created_time = timezone.make_naive(request.created_at) rq_created_at = timezone.make_aware(value=naive_created_time, timezone=timezone.get_current_timezone())