This commit is contained in:
philipp 2023-06-05 14:56:15 +02:00
parent 030fcd1c6f
commit ca93bc93c2

View File

@ -2,7 +2,7 @@ use std::io::Write;
use chrono::NaiveDate; use chrono::NaiveDate;
use ics::{ use ics::{
properties::{DtStart, Summary}, properties::{DtStart, Duration, Summary},
Event, ICalendar, Event, ICalendar,
}; };
use serde::Serialize; use serde::Serialize;
@ -224,6 +224,7 @@ FROM user_trip WHERE trip_details_id = (SELECT trip_details_id FROM planned_even
event.planned_starting_time.replace(':', "") event.planned_starting_time.replace(':', "")
))); )));
vevent.push(Summary::new(event.name)); vevent.push(Summary::new(event.name));
vevent.push(Duration::new("PT3H"));
calendar.add_event(vevent); calendar.add_event(vevent);
} }
let mut buf = Vec::new(); let mut buf = Vec::new();