update datetime format for billing report

This commit is contained in:
PhanThanhTrung 2024-03-20 15:56:33 +07:00
parent 8e18b69e0c
commit c1125397e6

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