forked from Ruderverein-Donau-Linz/rowt
push
This commit is contained in:
parent
030fcd1c6f
commit
ca93bc93c2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user