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
Editor Premium
Posts: 11
Joined: 2022

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

transparent spacer
Posted: 05 Apr 2023 22:01

zag
Admin
Posts: 3,942
Joined: 2020

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
transparent spacer
Posted: 06 Apr 2023 15:09
gjenkin
Editor Premium
Posts: 11
Joined: 2022

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
transparent spacer
Posted: 10 Apr 2023 10:38

zag
Admin
Posts: 3,942
Joined: 2020

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

transparent spacer
Posted: 24 Apr 2023 18:56
gjenkin
Editor Premium
Posts: 11
Joined: 2022

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.

transparent spacer
Posted: 24 Apr 2023 19:02
gjenkin
Editor Premium
Posts: 11
Joined: 2022

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. ?

transparent spacer
Showing 0 to 6 (Total: 6)