add dtstamp

This commit is contained in:
philipp 2023-06-05 13:21:41 +02:00
parent e3b73ea263
commit 2530d6343d

View File

@ -242,6 +242,11 @@ END:VTIMEZONE"#,
event.day.replace('-', ""), event.day.replace('-', ""),
event.planned_starting_time.replace(':', "") event.planned_starting_time.replace(':', "")
)); ));
res.push_str(&format!(
"\nDTSTAMP;TZID=Europe/Vienna:{}T{}00",
event.day.replace('-', ""),
event.planned_starting_time.replace(':', "")
));
res.push_str(&format!("\nSUMMARY:{}", event.name)); res.push_str(&format!("\nSUMMARY:{}", event.name));
res.push_str("\nEND:VEVENT"); res.push_str("\nEND:VEVENT");