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 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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user