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 -1
View File
@@ -13,6 +13,8 @@ from reportlab.lib.styles import ParagraphStyle, getSampleStyleSheet
from reportlab.lib.units import mm
from reportlab.platypus import Paragraph, SimpleDocTemplate, Spacer, Table, TableStyle
from apps.core.jalali import jalali_datetime
from apps.reports.models import FinalReport, ReportDefinition
GREEN = colors.HexColor("#166534")
@@ -128,7 +130,7 @@ class ReportService:
for item in timeline:
rows.append([
item.get("step", ""), item.get("state", ""), str(item.get("attempt", "")),
item.get("operator", ""), item.get("completed_at", ""),
item.get("operator", ""), jalali_datetime(item.get("completed_at", "")),
])
story.append(self._table(rows, [45 * mm, 30 * mm, 18 * mm, 35 * mm, 42 * mm], header=True))
story.append(Spacer(1, 3 * mm))