Hello Community,
As we can see in the image below, whenever you hover on the time section for a post or comment on codeforces, it shows you a wrong time. (I tried it for other posts and comments but same results) Not sure whether this is bug or intended, so just posting it out here.
It is working fine if you are not logged in!
Yes this is also a time bug as well!
MikeMirzayanov Can you please look into this?
Its still unresolved!
I had raised this concern 6 months ago and its still unresolved!!
For me it works perfectly on all blogs I tried, including the one where the image in your original post is from. If you still have the bug, then something weird is going on.
problem continues for me
I did some testing with switching my computer's time zones, and the results are really weird:
Not only does the bug only seem to happen when logged in and timezone is UTC+??:30, the formatting on the time is really weird (14.05.2003 vs Jul/14/2023, UTC+5.5 vs UTC+5:45) and the "correct" times still very much disagree with each other:
MikeMirzayanov
Edge case missed by Codeforces!
I went through the JS files out of curiosity and i think the issue is arising because of not using strict mode while parsing moment.
Changing
var m = moment(dateString, ruTime + " Z");
tovar m = moment(dateString, ruTime + " Z",true);
in codeforces.js?v=20160131 fixed it locally for me.Of course i don't have the complete picture so i might be wrong but i thought i should share it anyways.Hope it helps
MikeMirzayanov
thanks for the input