4 ms·
If you want to break it, search for "timer for 23 hours 59 minutes 60 seconds" ... For some reason the code seems to be configured to max out at 24 hours. I am
by numair 13y ago
If you want to break it, search for "timer for 23 hours 59 minutes 60 seconds" ... For some reason the code seems to be configured to max out at 24 hours. I am too busy dealing with my own broken JavaScript code to take a look, but maybe someone here can view source and figure out why they made that decision?
- basicallydan 13y agoI'm guessing they decided they had to put a limit somewhere to ensure nothing broke, and decided arbitrarily on that.
- numair 13y agoWell, you can set the timer to 99 hours, 59 minutes, 59 seconds if you type in the values, so it doesn't seem to make sense that 23:59:60 would break it. I'm really curious as to why that happens.
- perucoder 13y agoit looks like some default limits are in place for this. Here's what I found: Max for seconds: 999 Max for minutes: 999 Max for hours: 23
- lutusp 13y ago> but maybe someone here can view source and figure out why they made that decision? Chances are it's a classic case of choosing a register size such that the time counter wraps around at 86,400 seconds, and to avoid this, they would have to explicitly include days -- and chose not to.
- oakaz 13y agoTry this: http://requirebin.com/embed?gist=6668018 http://requirebin.com/embed?gist=6668018
- san86 13y agoit's times like these where I wish they still had the "Beta" in their logo.. turns out "timer for 23 hours 99 minutes" breaks it too :P more testing google.. more testing