This commit is contained in:
PhanThanhTrung 2024-03-06 16:11:10 +07:00
parent 0ab18b06b4
commit 96e135a13f
2 changed files with 3 additions and 6 deletions

Binary file not shown.

7
cope2n-api/fwd_api/utils/accuracy.py Normal file → Executable file
View File

@ -824,11 +824,8 @@ def create_billing_data(subscription_requests):
format_to_time = '%m/%d/%Y %H:%M'
format_to_date = '%m/%d/%Y'
format_to_month = '%B %Y'
rq_created_at = request.created_at
print(type(redemption_id))
rq_created_at = timezone.make_aware(rq_created_at)
print(rq_created_at)
naive_created_time = timezone.make_naive(request.created_at)
rq_created_at = timezone.make_aware(value=naive_created_time, timezone=timezone.get_current_timezone())
rq_month = rq_created_at.strftime(format_to_month)
rq_date = rq_created_at.strftime(format_to_date)
rq_time = rq_created_at.strftime(format_to_time)