change date and timezone to iran format

This commit is contained in:
2026-10-14 09:03:54 +03:30
parent 6fe5cf6bc3
commit fd89086d22
7 changed files with 157 additions and 5 deletions
+3 -2
View File
@@ -2,6 +2,7 @@ from django.db import transaction
from django.utils import timezone
from apps.core.errors import ApiError
from apps.core.jalali import jalali_date, jalali_time
from apps.reservations.models import Reservation, Slot
@@ -46,8 +47,8 @@ class ReservationService:
{
"customer_name": customer.company_name or customer.user.get_full_name() or customer.user.username,
"reservation_title": reservation.title,
"slot_date": str(reservation.slot.date),
"slot_time": str(reservation.slot.start_time),
"slot_date": jalali_date(reservation.slot.date),
"slot_time": jalali_time(reservation.slot.start_time),
},
recipient=customer.user.phone or customer.user.username,
)