From ca93bc93c25848d75a5d732aa31ac3d20b81f813 Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 5 Jun 2023 14:56:15 +0200 Subject: [PATCH] push --- src/model/planned_event.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();