forked from CGM_Public/pretix_original
Fix accounting report pending payment timezone (#5698)
This commit is contained in:
committed by
GitHub
parent
1b1cf1557d
commit
5caaa8586d
@@ -644,7 +644,9 @@ class ReportExporter(ReportlabExportMixin, BaseExporter):
|
|||||||
FontFallbackParagraph(
|
FontFallbackParagraph(
|
||||||
_("Pending payments at {datetime}").format(
|
_("Pending payments at {datetime}").format(
|
||||||
datetime=date_format(
|
datetime=date_format(
|
||||||
df_start - datetime.timedelta.resolution,
|
(df_start - datetime.timedelta.resolution).astimezone(
|
||||||
|
self.timezone
|
||||||
|
),
|
||||||
"SHORT_DATETIME_FORMAT",
|
"SHORT_DATETIME_FORMAT",
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -694,7 +696,9 @@ class ReportExporter(ReportlabExportMixin, BaseExporter):
|
|||||||
Paragraph(
|
Paragraph(
|
||||||
_("Pending payments at {datetime}").format(
|
_("Pending payments at {datetime}").format(
|
||||||
datetime=date_format(
|
datetime=date_format(
|
||||||
(df_end or now()) - datetime.timedelta.resolution,
|
((df_end or now()) - datetime.timedelta.resolution).astimezone(
|
||||||
|
self.timezone
|
||||||
|
),
|
||||||
"SHORT_DATETIME_FORMAT",
|
"SHORT_DATETIME_FORMAT",
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -751,7 +755,9 @@ class ReportExporter(ReportlabExportMixin, BaseExporter):
|
|||||||
Paragraph(
|
Paragraph(
|
||||||
_("Total gift card value at {datetime}").format(
|
_("Total gift card value at {datetime}").format(
|
||||||
datetime=date_format(
|
datetime=date_format(
|
||||||
df_start - datetime.timedelta.resolution,
|
(df_start - datetime.timedelta.resolution).astimezone(
|
||||||
|
self.timezone
|
||||||
|
),
|
||||||
"SHORT_DATETIME_FORMAT",
|
"SHORT_DATETIME_FORMAT",
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@@ -789,7 +795,9 @@ class ReportExporter(ReportlabExportMixin, BaseExporter):
|
|||||||
Paragraph(
|
Paragraph(
|
||||||
_("Total gift card value at {datetime}").format(
|
_("Total gift card value at {datetime}").format(
|
||||||
datetime=date_format(
|
datetime=date_format(
|
||||||
(df_end or now()) - datetime.timedelta.resolution,
|
((df_end or now()) - datetime.timedelta.resolution).astimezone(
|
||||||
|
self.timezone
|
||||||
|
),
|
||||||
"SHORT_DATETIME_FORMAT",
|
"SHORT_DATETIME_FORMAT",
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user