Cargo update

This commit is contained in:
Manuel Vögele
2024-01-10 17:34:23 +01:00
parent 9b0876cb08
commit cd2598a571
3 changed files with 647 additions and 544 deletions

View File

@@ -105,8 +105,7 @@ async fn main() {
};
let sleep_duration = next_appointment
.map(|timestamp| NaiveDateTime::from_timestamp_opt(timestamp, 0).unwrap())
.map(|naive_date_time| DateTime::<Utc>::from_utc(naive_date_time, Utc))
.map(|timestamp| Utc.timestamp_opt(timestamp, 0).unwrap())
.map(|date_time| date_time - now)
.map(|duration| duration.to_std().unwrap())
.filter(|duration| *duration < poll_duration)