From b237ff38502ae9e16676bfa65a0cdfa194feb8e9 Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 5 Jun 2023 13:18:40 +0200 Subject: [PATCH] add timezone information in ics feed --- src/model/planned_event.rs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/model/planned_event.rs b/src/model/planned_event.rs index 4ca91a5..0de77ff 100644 --- a/src/model/planned_event.rs +++ b/src/model/planned_event.rs @@ -211,7 +211,26 @@ FROM user_trip WHERE trip_details_id = (SELECT trip_details_id FROM planned_even r#"BEGIN:VCALENDAR VERSION:2.0 PRODID:-//rudernlinz.at//Trips//DE -X-WR-CALNAME:Ruderausfahrten"#, +X-WR-CALNAME:Ruderausfahrten +BEGIN:VTIMEZONE +TZID:Europe/Vienna +TZURL:http://tzurl.org/zoneinfo-outlook/Europe/Vienna +X-LIC-LOCATION:Europe/Vienna +BEGIN:DAYLIGHT +TZOFFSETFROM:+0100 +TZOFFSETTO:+0200 +TZNAME:CEST +DTSTART:19700329T020000 +RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU +END:DAYLIGHT +BEGIN:STANDARD +TZOFFSETFROM:+0200 +TZOFFSETTO:+0100 +TZNAME:CET +DTSTART:19701025T030000 +RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU +END:STANDARD +END:VTIMEZONE"#, ); let events = PlannedEvent::all(db).await;