Merge pull request #45 from HTWK-Leipzig/42-fix-trigger-format

42 fix reminder time format (Google compatibility)
This commit is contained in:
masterElmar
2023-11-03 00:06:39 +01:00
committed by GitHub

View File

@@ -55,7 +55,7 @@ func addAlarmIfSpecified(s *goics.Component, event model.Event, mapping model.Fe
if mapping.Reminder {
a := goics.NewComponent()
a.SetType("VALARM")
a.AddProperty("TRIGGER", "-PT15M")
a.AddProperty("TRIGGER", "-P0DT0H15M0S")
a.AddProperty("ACTION", "DISPLAY")
a.AddProperty("DESCRIPTION", "Next course: "+replaceNameIfUserDefined(&event, mapping)+" in "+event.Rooms)
s.AddComponent(a)