Archived
1
0
Fork 0
forked from Anri/cal8tor
This commit is contained in:
Mylloon 2022-08-16 12:16:23 +02:00
parent 027fc95101
commit 7e63dacb96
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -33,7 +33,7 @@ pub fn export(courses: Vec<crate::timetable::models::Course>, filename: &str) {
} }
/// Transform the datetime from chrono to the ICS format /// Transform the datetime from chrono to the ICS format
/// See https://github.com/hummingly/ics/issues/17#issue-985662287 /// See <https://github.com/hummingly/ics/issues/17#issue-985662287>
fn dt_ical(dt: chrono::DateTime<chrono::Utc>) -> String { fn dt_ical(dt: chrono::DateTime<chrono::Utc>) -> String {
format!("{}", dt.format("%Y%m%dT%H%M%SZ")) format!("{}", dt.format("%Y%m%dT%H%M%SZ"))
} }