This commit is contained in:
2023-05-24 13:11:47 +02:00
parent c91db80ce5
commit 478ce329e3
2 changed files with 7 additions and 5 deletions

View File

@ -26,7 +26,10 @@ mod faq;
fn amount_days_to_show(is_cox: bool) -> i64 {
if is_cox {
let end_of_year = NaiveDate::from_ymd_opt(Local::now().year(), 12, 31).unwrap();
let end_of_year = NaiveDate::from_ymd_opt(Local::now().year(), 12, 31).unwrap(); //Ok,
//december
//has 31
//days
end_of_year
.signed_duration_since(Local::now().date_naive())
.num_days()