I got it 90% working lol I’m still not updating all the players properly every loop but most of them I am. It looks like I’m finally displaying the correct data but uncertain.
This is my call. [] means paramaters.
I got it 90% working lol I’m still not updating all the players properly every loop but most of them I am. It looks like I’m finally displaying the correct data but uncertain.
This is my call. [] means paramaters.
I finished 49 games (27 live+22 correspondence), not 18. Maybe wrong time zone, since most of them were played in the first hours?
I count 18 on your profile so probably time zone.
But it started at midnight GMT, right?
Midnight of whatever clock OGS uses. I have no control over that
Starting Midnight UTC i have 10 not 7 (i don’t think It’s a clock problem btw)
First result from UTC+2 around.
Only 1 game cancelled (vs Peter K), not counted.
All long time setting and ranked (1 AST no blitz, and ladders). All 19x19
If it can help.
Sorry for the confusion, “2021-03-01+00%3A00” is the same as “2021-03-01 00:00”; ‘+’ means space and %3A means ‘:’ (It’s called URL encoding).
https://online-go.com/api/v1/players/126739/games/?ended__gte=2021-03-01%2000:00&ended__lt=2021-04-01%2000:00&height=19&width=19&ordering=ended&ranked=true&annulled=false
@Clossius1 , it seems dates are saved in UTC-5:00 and UTC-4:00 in daylight time (Eastern Time Zone - Wikipedia). If you want to use UTC+0 just add Z after the time (2022-03-01 00:00Z), for example:
https://online-go.com/api/v1/players/126739/games/?ended__gte=2022-03-01%2000:00Z&ended__lt=2022-04-01%2000:00Z&height=19&width=19&ordering=ended&ranked=true&annulled=false , 70 games for @_Sofiam
I counted 64 and I’m almost sure of it, unless 6 correspondence games finished without that i noticed it but i don’t think so. I can’t open my profile now
It was decided it would be easier to use OGS’s timezone as that it what displays on the user’s profile.
What the fudge lol. I’ll see if I can figure out what I am seeing then.
OGS very helpfully sometimes shows server time and sometimes shows your local time I believe the numbers on any profile page should display in the observer’s local time, as does chat and PM… but I think the API might run off server time (UTC) like the weekend pause and sitewide tournaments do.
I switched to UTC using the 7 mentioned above and got the expected count
Here it is