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 ics::{
properties::{DtStart, Summary},
properties::{DtStart, Duration, Summary},
Event, ICalendar,
};
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(':', "")
)));
vevent.push(Summary::new(event.name));
vevent.push(Duration::new("PT3H"));
calendar.add_event(vevent);
}
let mut buf = Vec::new();