end dates are exlcusive
CI/CD Pipeline / deploy-main (push) Successful in 1m16s

This commit is contained in:
2026-05-01 08:12:33 +02:00
parent 88bdc07e1b
commit 7c20d53325
+2 -1
View File
@@ -10,12 +10,13 @@ fn parse_german_date(date_str: &str) -> Option<NaiveDate> {
fn create_ics_event(date: NaiveDate, title: &str, event_type: &str) -> String {
let uid = Uuid::new_v4();
let date_str = date.format("%Y%m%d");
let end_date_str = (date + chrono::Duration::days(1)).format("%Y%m%d");
let timestamp = Utc::now().format("%Y%m%dT%H%M%SZ");
format!(
"BEGIN:VEVENT\n\
DTSTART;VALUE=DATE:{date_str}\n\
DTEND;VALUE=DATE:{date_str}\n\
DTEND;VALUE=DATE:{end_date_str}\n\
DTSTAMP:{timestamp}\n\
UID:{uid}\n\
CREATED:{timestamp}\n\