[BUG] getCurrentGameInfoBySummoner problem How to get correct game length?
Describe the bug
SPECTATOR-V4 active-games returns wrong game length.
(https://developer.riotgames.com/apis#spectator-v4/GET_getCurrentGameInfoBySummoner)
Issue Description
I need the play time of the active game.
Expected Result
If the game time is displayed as 10:0, gameLength must receive 600.
Actual Result
gameLength returns the values randomly. Returns a value that is not 100% random but slightly matches the displayed time.
Below is the result of my experiment.
display time: 15:40 returned: 627 566 566 712 566 566 716 566 712
display time: 35:34 returned: 1796 1937 1979 1979 1979 1937 1937 1937
Developer Impact I can't implement the function I want.
Preconditions Region: KR Map: Summoner's lift
Steps to reproduce It just happens when I use the below API. https://developer.riotgames.com/apis#spectator-v4/GET_getCurrentGameInfoBySummoner
Issue Comments Thanks for reading. My ultimate goal is just to get the playtime of the game in progress. (without the need for tournament code)
If there is another way to figure this out, please provide.
Just divide it by 60 to get the Minutes. To get the seconds, you need to % it by 60!
Thanks for the reply! But I think you misunderstood the question.
Looking at the actual result item, if the game shows 15:40, it should return 940, but it returns weird values like 627, 566, 712, 566, 716.
It returns a strange value.