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