change date and timezone to iran format
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user