From 3a5438788197cdac4a9996a4b7bdbab7da80f70b Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 28 Jan 2024 05:58:55 -0600 Subject: [PATCH] Fix ICS version --- helpers.go | 2 +- main.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/helpers.go b/helpers.go index 2800877..d1d1460 100644 --- a/helpers.go +++ b/helpers.go @@ -334,7 +334,7 @@ func NewCalendar() *ics.Calendar { Components: []ics.Component{}, CalendarProperties: []ics.CalendarProperty{}, } - c.SetVersion(Version) + c.SetVersion("2.0") c.SetProductId("-//xevion//Banner Discord Bot//EN") return c } diff --git a/main.go b/main.go index a3ab1c2..06e619b 100644 --- a/main.go +++ b/main.go @@ -31,8 +31,10 @@ var ( centralTime *time.Location ) -const Version = "0.0.1" -const CentralTimezone = "America/Chicago" +const ( + ICalTimestampFormatUtc = "20060102T150405Z" + CentralTimezone = "America/Chicago" +) func init() { // Load environment variables