Merge pull request #95 from SDSRV-IDP/trungpt/billing_request_time_format

update datetime format for billing report
This commit is contained in:
Đỗ Xuân Tân 2024-03-20 15:57:59 +07:00 committed by GitHub Enterprise
commit c1b0ad2d52

View File

@ -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())