Site
Home / Forum / Developers / Timezone issues with NBA live score v2

Timezone issues with NBA live score v2


Posted: 04 Apr 2023 15:24
gjenkin
Posts: 11
Joined: 2022-09-23

The live score v2 end point is limited to one day of games and is based on UTC. This creates an issue where some NBA games start at 23:00 UTC, display live scores for one hour, and then disappear.

Has anyone dealt with this issue before? Is there another end point to use for live scores based on `dateEventLocale` instead of `dateEvent`?

Endpoint: https://www.thesportsdb.com/api/v2/json/APIKEY/livescore.php?l=4387

Posted: 05 Apr 2023 22:01

zag
Posts: 3,331
Joined: 2020-03-23

The live score v2 end point is limited to one day of games and is based on UTC. This creates an issue where some NBA games start at 23:00 UTC, display live scores for one hour, and then disappear.

Has anyone dealt with this issue before? Is there another end point to use for live scores based on `dateEventLocale` instead of `dateEvent`?

Endpoint: https://www.thesportsdb.com/api/v2/json/APIKEY/livescore.php?l=4387


Hmm we used to have this issue with NFL but it should now work. I will check it out. Just hard to test sometimes as we are in a GMT timezone.

You can potentially lookup the event details via eventid for a slower update of livescores.

gjenkin
Posted: 06 Apr 2023 15:09
gjenkin
Posts: 11
Joined: 2022-09-23

Confirming that games that started at 23:00 UTC yesterday (e.g. Washington @ Atlanta, Chicago @ Milwaukee) disappeared from the livescore feed 30 minutes after start time while games that started at 0:00 UTC (e.g. New Orleans @ Memphis) continued to update until the game ended.

Some of the other live score feeds seem to switch days at around 15:00 UTC (e.g. the v1 latestncaabasketball.php). Can we please change the v2 livescore feeds for NBA (l=4387) and MLB (l=4424) to also switch days at 15:00 UTC?

zag
Posted: 10 Apr 2023 10:38

zag
Posts: 3,331
Joined: 2020-03-23

Thanks yes just confirming I have seen the issue as well now. Not quite sure how I'm gonna fix it but I will try

Posted: 24 Apr 2023 18:56
gjenkin
Posts: 11
Joined: 2022-09-23

Zag - It looks like you may have solved this. Did you? If so, that would be really amazing!

EDIT: Ah actually I see that we're still having the same issue. Tonight's Bucks at Heat game will disappear after 30 minutes.

Posted: 24 Apr 2023 19:02
gjenkin
Posts: 11
Joined: 2022-09-23

One way to solve this could be to expand the range of dates for the livescore endpoint to 2 dates ... the current UTC date and the previous day's UTC date. ?


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 6 (Total: 6)