show last day of year

This commit is contained in:
philipp 2023-04-07 10:10:54 +02:00
parent 7190e14c2f
commit c59a2c3a29

View File

@ -32,7 +32,7 @@ async fn index(db: &State<SqlitePool>, user: User, flash: Option<FlashMessage<'_
.num_days();
}
for i in 0..show_next_n_days {
for i in 0..show_next_n_days + 1 {
let date = (Local::now() + Duration::days(i)).date_naive();
days.push(Day::new(db, date).await);
}