mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-26 00:31:14 +02:00
Add timezones to CalendarEvent
This commit is contained in:
parent
96dfeac1bd
commit
a5767c9b5a
@ -25,6 +25,8 @@ type CalendarEvent struct {
|
||||
Participants []Participant
|
||||
References []string
|
||||
Hashtags []string
|
||||
StartTzid string
|
||||
EndTzid string
|
||||
}
|
||||
|
||||
type Participant struct {
|
||||
@ -91,6 +93,10 @@ func ParseCalendarEvent(event nostr.Event) CalendarEvent {
|
||||
calev.References = append(calev.References, tag[1])
|
||||
case "t":
|
||||
calev.Hashtags = append(calev.Hashtags, tag[1])
|
||||
case "start_tzid":
|
||||
calev.StartTzid = tag[1]
|
||||
case "end_tzid":
|
||||
calev.EndTzid = tag[1]
|
||||
}
|
||||
}
|
||||
return calev
|
||||
|
Loading…
x
Reference in New Issue
Block a user