fw42 / cubecomp

WCA Rubik's Cube competition website hosting
https://cubecomp.de/
MIT License
10 stars 4 forks source link

Bug in Stats #211

Closed SAuroux closed 8 years ago

SAuroux commented 8 years ago

The second stats graph seems to be off by a month: https://cubecomp.de/go16/de/stats

Also, for Hessen Open, there are two data points for one date (maybe due to the same issue?): https://cubecomp.de/he16/de/stats

fw42 commented 8 years ago

Not sure where the duplicate datapoint thing came from... but looks like my fix solved both issues. Thanks for letting me know,

timhabermaas commented 8 years ago

JS interprets new Date(2014, 12, 1) as the 1st of January 2015. This might've been the cause of the duplicate point.

SAuroux commented 8 years ago

well, I guess the duplicate came from calling data from 30th of February. :)

Thanks for fixing this so quickly!

2016-02-01 17:12 GMT+01:00 Florian Weingarten notifications@github.com:

Not sure where the duplicate datapoint thing came from... but looks like my fix solved both issues. Thanks for letting me know,

— Reply to this email directly or view it on GitHub https://github.com/fw42/cubecomp/issues/211#issuecomment-178047669.