From 7151e71400e501c0780ecf1f9f9760e8bf0bbe0b Mon Sep 17 00:00:00 2001 From: Arran Ubels Date: Mon, 28 Oct 2024 21:43:24 +1100 Subject: [PATCH] Commented out exception as it isn't a valid exception. --- components.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components.go b/components.go index 1110fcd..a29de5f 100644 --- a/components.go +++ b/components.go @@ -197,9 +197,9 @@ func dateFormatForTime(t time.Time, props []PropertyParameter) (string, []Proper if l != nil { ls = l.String() } - if (l == time.UTC || ls == "MST") && tzid == nil { + if (l == time.UTC /* || ls == "MST"*/ || l == nil) && tzid == nil { layout = icalDateFormatUTC - } else if tzid == nil && l != time.Local && ls != "MST" { + } else if tzid == nil && l != time.Local /* && ls != "MST"*/ { props = append(props, WithTZID(ls)) } return layout, props @@ -213,9 +213,9 @@ func timestampFormatForTime(t time.Time, props []PropertyParameter) (string, []P if l != nil { ls = l.String() } - if (l == time.UTC || ls == "MST" || l == nil) && tzid == nil { + if (l == time.UTC || /*ls == "MST" ||*/ l == nil) && tzid == nil { layout = icalTimestampFormatUTC - } else if tzid == nil && l != time.Local && ls != "MST" { + } else if tzid == nil && l != time.Local /* && ls != "MST"*/ { props = append(props, WithTZID(ls)) } return layout, props