fix: send correct date in the email report

The email report showed the day before's date instead of yesterday, which
is incorrect for the data the report is being generated for. Setting the
date to `time_range.end` fixes this visual issue.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai
2025-02-08 00:12:13 +05:30
parent 7d48e05d7d
commit 48418a9926

View File

@@ -144,7 +144,7 @@ impl ReportGenerator {
Ok(ReportData {
website_name: website.name.clone(),
date: time_range.start.format("%B %d, %Y").to_string(),
date: time_range.end.format("%B %d, %Y").to_string(),
stats,
bounce_rate,
time_spent,