summaryrefslogtreecommitdiffstats
path: root/src/actions/new.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/new.rs')
-rw-r--r--src/actions/new.rs40
1 files changed, 34 insertions, 6 deletions
diff --git a/src/actions/new.rs b/src/actions/new.rs
index f49f478..613f04f 100644
--- a/src/actions/new.rs
+++ b/src/actions/new.rs
@@ -131,11 +131,26 @@ static TEMPLATE_EVENT: &str = indoc!(
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//khaleesi //EN
+ BEGIN:VTIMEZONE
+ TZID:Europe/Berlin
+ BEGIN:STANDARD
+ DTSTART:19711025T030000
+ TZOFFSETFROM:+0200
+ TZOFFSETTO:+0100
+ RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+ END:STANDARD
+ BEGIN:DAYLIGHT
+ DTSTART:19710329T020000
+ TZOFFSETFROM:+0100
+ TZOFFSETTO:+0200
+ RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
+ END:DAYLIGHT
+ END:VTIMEZONE
BEGIN:VEVENT
SUMMARY:<<EDIT ME>>
LOCATION:<<EDIT ME>>
- DTSTART;VALUE=DATE-TIME:20181026T133000
- DTEND;VALUE=DATE-TIME:20181026T160000
+ DTSTART;TZID=Europe/Berlin;VALUE=DATE-TIME:20181026T133000
+ DTEND;TZID=Europe/Berlin;VALUE=DATE-TIME:20181026T160000
DTSTAMP;VALUE=DATE-TIME:20181022T145405Z
UID:foo
END:VEVENT
@@ -297,13 +312,26 @@ mod integration {
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//khaleesi //EN
+ BEGIN:VTIMEZONE
+ TZID:Europe/Berlin
+ BEGIN:STANDARD
+ DTSTART:19711025T030000
+ TZOFFSETFROM:+0200
+ TZOFFSETTO:+0100
+ RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+ END:STANDARD
+ BEGIN:DAYLIGHT
+ DTSTART:19710329T020000
+ TZOFFSETFROM:+0100
+ TZOFFSETTO:+0200
+ RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
+ END:DAYLIGHT
+ END:VTIMEZONE
BEGIN:VEVENT
SUMMARY:summary text
LOCATION:location text
- DTSTART;TZID=/freeassociation.sourceforge.net/Europe/Berlin:
- 20171103T123000
- DTEND;TZID=/freeassociation.sourceforge.net/Europe/Berlin:
- 20171107T111100
+ DTSTART;TZID=Europe/Berlin:20171103T123000
+ DTEND;TZID=Europe/Berlin:20171107T111100
DTSTAMP:20130101T010203Z
UID:11111111-2222-3333-4444-444444444444@khaleesi
LAST-MODIFIED:20130101T010203Z