mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-31 08:58:21 +00:00
Re-implement calendar export
This commit is contained in:
@@ -92,7 +92,7 @@ pub async fn route_mkcalendar<C: CalendarStore, S: SubscriptionStore>(
|
||||
.ok_or_else(|| rustical_dav::Error::BadRequest("No timezone data provided".to_owned()))?
|
||||
.map_err(|_| rustical_dav::Error::BadRequest("Error parsing timezone".to_owned()))?;
|
||||
|
||||
let timezone = calendar.vtimezones.first().ok_or_else(|| {
|
||||
let timezone = calendar.vtimezones.values().next().ok_or_else(|| {
|
||||
rustical_dav::Error::BadRequest("No timezone data provided".to_owned())
|
||||
})?;
|
||||
let timezone: Option<chrono_tz::Tz> = timezone.into();
|
||||
|
||||
Reference in New Issue
Block a user