Site
Home / Forum / Developers / How do we determine what local is being used for dateEvent and updated

How do we determine what local is being used for dateEvent and updated


Posted: 12 Sep 2025 21:52
pintel
Editor Premium
Posts: 2
Joined: 2025

Newbie here and i see for the https://www.thesportsdb.com/api/v2/json/livescore/all endpoint, it returns a livescore object
What locale is being used for the date and timestamp is it utc time or is it converting it to the requester's local time
{
"idLiveScore": "278444289",
"idEvent": "2272541",
"strSport": "Ice Hockey",
"idLeague": "5160",
"strLeague": "Canadian WHL",
"idHomeTeam": "144370",
"idAwayTeam": "144369",
"strHomeTeam": "Regina Pats",
"strAwayTeam": "Prince Albert Raiders",
"strHomeTeamBadge": "https://r2.thesportsdb.com/images/media/team/badge/wvwmog1637782293.png",
"strAwayTeamBadge": "https://r2.thesportsdb.com/images/media/team/badge/ikvfdn1637782288.png",
"intHomeScore": "2",
"intAwayScore": "6",
"intEventScore": null,
"intEventScoreTotal": null,
"strStatus": "FT",
"strProgress": "",
"strEventTime": "01:00",
"dateEvent": "2025-09-12",
"updated": "2025-09-12 19:53:24"
}

transparent spacer
Posted: 14 Sep 2025 18:35

zag
Admin
Posts: 3,848
Joined: 2020

Should be UTC

transparent spacer
Posted: 14 Sep 2025 18:36

zag
Admin
Posts: 3,848
Joined: 2020

Should be UTC

You can always lookup the eventid to check

transparent spacer
Showing 0 to 3 (Total: 3)