Skip to content

Commit

Permalink
add SetLastModified
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Jacob committed Nov 13, 2023
1 parent 6e1c234 commit 809d99f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ func run(tz *time.Location, outputdir string, motdSummary *string, motdDescripti
),
)
log.Println("writing ics files")
now := time.Now()
var motd *ics.VEvent
if *motdSummary != "" {
now := time.Now()
motd = ics.NewEvent("motd")
motd.SetSummary(*motdSummary)
motd.SetDtStampTime(now)
Expand All @@ -170,6 +170,7 @@ func run(tz *time.Location, outputdir string, motdSummary *string, motdDescripti
cal.SetMethod(ics.MethodRequest)
cal.SetTzid(tz.String())
cal.SetTimezoneId(tz.String())
cal.SetLastModified(now)
for id, e := range ce {
cal.AddVEvent(ical.ConvertEvent(e, id, tz))
}
Expand Down

0 comments on commit 809d99f

Please sign in to comment.