This repository was archived by the owner on Jan 15, 2024. It is now read-only.
File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ type TimeInterval struct {
19
19
DaysOfMonth []DayOfMonthRange `json:"days_of_month,omitempty"`
20
20
Months []MonthRange `json:"months,omitempty"`
21
21
Years []YearRange `json:"years,omitempty"`
22
+ Location Location `json:"location,omitempty"`
22
23
}
23
24
24
25
// TimeRange represents a range of minutes within a 1440 minute day, exclusive of the End minute.
@@ -39,6 +40,9 @@ type MonthRange string
39
40
// A YearRange is a positive inclusive range of years, e.g. "2030" or "2021:2022".
40
41
type YearRange string
41
42
43
+ // A Location time zone for the time interval in IANA time zone database, e.g. "America/New_York"
44
+ type Location string
45
+
42
46
// MuteTimings fetches all mute timings.
43
47
func (c * Client ) MuteTimings () ([]MuteTiming , error ) {
44
48
mts := make ([]MuteTiming , 0 )
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ func createMuteTiming() MuteTiming {
100
100
Weekdays : []WeekdayRange {"monday" , "wednesday" },
101
101
Months : []MonthRange {"1:3" , "4" },
102
102
Years : []YearRange {"2022" , "2023" },
103
+ Location : "America/New_York" ,
103
104
},
104
105
},
105
106
}
@@ -122,7 +123,8 @@ const getMuteTimingsJSON = `
122
123
],
123
124
"months": [
124
125
"1"
125
- ]
126
+ ],
127
+ "location": "America/New_York"
126
128
}
127
129
]
128
130
},
You can’t perform that action at this time.
0 commit comments