Possible bug with PvP game end/start time
Could you provide some more data? Like, expected start/end, actual start/end for a match or two?
EDIT: nm, Evan poked around in the code for me and you’re totally right; the date the API is reading is the end date, and it’s adding the duration to that. Tracking issue.
(edited by Lawton Campbell.8517)
If this is fixed, do you know if it would take effect for old games? I could implement a workaround right now that queries an old game and checks to see if it’s “ended” time is what I expect it should be. If it isn’t, I can do my own date calculations based on end time and duration. But this presupposes that its just a code bug or that the data the API uses will be refreshed with the correct values for all time.
Thanks for the hard work on the API. I dig it.
If this is fixed, do you know if it would take effect for old games?
Yeah, it’ll take effect for old games. The stored data is correct — there’s a date/duration for each game — the API frontend is just misinterpreting the date as the start date rather than the end date.
Should have it fixed by the end of the week.