The name history API is lacking precision
Hey, the endpoint to retrieve a profiles past usernames & when they were released seems to be lacking precision.
https://api.mojang.com/user/profiles/74607664382f43498815d384e18a1a6e/names
For example there, it only goes up to second precision not millisecond.
Calculating name availability through this seems to be inaccurate as I've been able to change my name to a name which was not supposed to be available for another 900ms (i.e. name drops at 40th second & I claim at 39.1s)
I feel like it's a case of if I change my name at 40.1 seconds, it'll show on the API that it was changed at 41 seconds always rounding up, I've done some extensive testing and it seems that for the majority of names I am able to claim them on average 500ms early, that makes me feel the backend has millisecond accuracy but the specific endpoint is only showing second acuracy.
Addition: I create the ticket for this since I already see the response for time is in UnixNano i.e. "1574232692000" which already has the room for milliseconds and shouldn't create compatibility issues, but do let me know ![]()