diff --git a/src/model/planned_event.rs b/src/model/planned_event.rs index 6284a74..490417a 100644 --- a/src/model/planned_event.rs +++ b/src/model/planned_event.rs @@ -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();