B0und / WikiSpeedrun

Wikipedia Speedrun Game
https://wikispeedrun.org
MIT License
88 stars 10 forks source link

Timer display starts at 30:00 instead of 00:00 #3

Closed 1NDT closed 2 years ago

1NDT commented 2 years ago

Has no real impact on the game, since time limits seem to be calculated relative to the starting time (for example, setting the time limit to 00:01:00 will end the game when the timer displays 31:00.000). Tried looking at the code to figure out the cause, realized i know nothing about code. Screenshot (hopefully) attached: Wikispeedrun timer screenshot

B0und commented 2 years ago

Has no real impact on the game, since time limits seem to be calculated relative to the starting time (for example, setting the time limit to 00:01:00 will end the game when the timer displays 31:00.000). Tried looking at the code to figure out the cause, realized i know nothing about code. Screenshot (hopefully) attached:

What browser are you using, and what version? Does it persist if you refresh the page? I cannot reproduce it on firefox/chrome

1NDT commented 2 years ago

I'm using Opera version 87.0.4390.36 . The issue does persist on refreshing the page, on restarting the browser, as well as restarting the computer. However, the issue also occurs on Firefox version 100.0.2 (image attached). Could it be an operating system thing? I'm on Ubuntu 22.04 LTS, if that helps. Wikispeedrun on Firefox

B0und commented 2 years ago

I'm using Opera version 87.0.4390.36 . The issue does persist on refreshing the page, on restarting the browser, as well as restarting the computer. However, the issue also occurs on Firefox version 100.0.2 (image attached). Could it be an operating system thing? I'm on Ubuntu 22.04 LTS, if that helps.

Its some bullshit with Javascript dates. Im looking into it

B0und commented 2 years ago

I'm using Opera version 87.0.4390.36 . The issue does persist on refreshing the page, on restarting the browser, as well as restarting the computer. However, the issue also occurs on Firefox version 100.0.2 (image attached). Could it be an operating system thing? I'm on Ubuntu 22.04 LTS, if that helps.

I have submitted a fix. Please test if it works for you

1NDT commented 2 years ago

Yep, everything seems to be working now, thanks.