Skip to content

Commit

Permalink
Commented out exception as it isn't a valid exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
arran4 committed Oct 28, 2024
1 parent 564e7cb commit 7151e71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7151e71

Please sign in to comment.