diff --git a/req_competition_fixtures.go b/req_competition_fixtures.go index c255da6..c3953ef 100644 --- a/req_competition_fixtures.go +++ b/req_competition_fixtures.go @@ -30,7 +30,7 @@ func (r CompetitionFixturesRequest) TimeFrameStart(date time.Time) CompetitionFi // TimeFrameEnd modifies the request to specify the end of the time frame filter for the returned results. // // Only the year, month and day of the Time value will be used for the request. -func (r CompetitionFixturesRequest) TimeFrameStart(date time.Time) CompetitionFixturesRequest { +func (r CompetitionFixturesRequest) TimeFrameEnd(date time.Time) CompetitionFixturesRequest { r.urlValues.Set("timeFrameEnd", date.Format(timeFrameLayout)) return r } diff --git a/req_fixtures.go b/req_fixtures.go index 54eadbd..6eaecfa 100644 --- a/req_fixtures.go +++ b/req_fixtures.go @@ -24,7 +24,7 @@ func (r FixturesRequest) TimeFrameStart(date time.Time) FixturesRequest { // TimeFrameEnd modifies the request to specify the end of the time frame filter for the returned results. // // Only the year, month and day of the Time value will be used for the request. -func (r FixturesRequest) TimeFrameStart(date time.Time) FixturesRequest { +func (r FixturesRequest) TimeFrameEnd(date time.Time) FixturesRequest { r.urlValues.Set("timeFrameEnd", date.Format(timeFrameLayout)) return r }