mirror of
https://github.com/Thunderbottom/umami-alerts.git
synced 2025-12-21 12:59:30 -06:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user