Site
Home / Forum / Developers / events->strTime

events->strTime


Posted: 14 May 2021 17:58
ichemmer
Posts: 13
Joined: 2021-05-11

Normally the world has a greenwich-time,
and all others a plus or minus.
In the list of events i have imported a minute ago, i have

strTime = 18:30
localTime = 20:30

but our time is +1 to Time in Greenwich, London, UK, not +2
so this strTime is maybe your time? And you are somewhere with +2 to London?

Puh! Also i am shure that some countries have no summer-time;
maybe it is the best to use the local time.


Posted: 14 May 2021 18:09
ichemmer
Posts: 13
Joined: 2021-05-11

https://www.thesportsdb.com/api/v1/json/1/eventsseason.php?id=4331&s=2020-2021

here you can see 18:30 and 20:30;
the timeString is +0; this means London, Uk.
then this time is probably wrong, because UK and Germany has a summertime.

The match was 20.30 local_time.


Posted: 14 May 2021 21:58
ichemmer
Posts: 13
Joined: 2021-05-11

I have imported the local date and time, from some events.
It seems that they are not set for all events of some leagues.
So it is maybe better to fetch the just the strTimestamp, but as written before, there seems to be an issue with the time difference.

Posted: 14 May 2021 22:42

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

Times are always UTC so not effected by any daylight savings.

Local times are entered manually by the user so if you see anything wrong (for example when the time changes to +1) then please do update it by editing the event.

Posted: 14 May 2021 23:11
ichemmer
Posts: 13
Joined: 2021-05-11

So UTC is GWT + summertime?
Means in the winter UTC=GWT, but in the summer GWT=UTC+1.
I hope that all leagues are closed from october to march. )


Posted: 15 May 2021 13:33

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

GMT yes

You can always work out the time from UTC though as you know the +1 or +0.


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)