fix: panic when local offset not applicable

This commit is contained in:
Max Hohlfeld 2024-02-24 21:19:05 +01:00
parent fa03c4e25f
commit 357dc3f360

View File

@ -18,7 +18,7 @@ pub fn update_rss_file(places: Vec<RemainingPlace>, url: &str, rss_file: &str) {
let title = format!(
"Restplatzbörse Update - {}",
OffsetDateTime::now_local()
.unwrap()
.unwrap_or(OffsetDateTime::now_utc())
.format(time::macros::format_description!(
"[year]-[month]-[day] [hour]:[minute]"
))