fix: panic when local offset not applicable
This commit is contained in:
parent
fa03c4e25f
commit
357dc3f360
@ -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]"
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user