Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ssvadim

    (@ssvadim)

    Hello,

    It works on my side.
    In which browser did you tried timer?

    Thread Starter vinay9599

    (@vinay9599)

    i tried it on chrome as well on firefox

    @ssvadim

    I also face same problem… Please Fix this Bug ASAP.

    I have Tasted on Chrome, Firefox, IE9 & 10.

    i’m pretty sure its related to the timezone/time notation on your pc…

    if you change it to like say belgian notation/timezone, i’m pretty sure it will work.

    The Date function ssvadim used, doesnt cover that, he will need to adapt the conversion to UTCtime, and then calculate with it.

    i’ve created a dirty fix for you guys. it should work/but break after an update
    open the ssquiz.js in in editor

    replace line 947-949

    var date = new Date(left * 1000);
    
    var time = date.toTimeString().substr(3, 5);

    with

    var secsleft=left;
    var minutes = Math.floor(secsleft / 60);
    secsleft -= minutes * 60;
    
    var seconds = parseInt(secsleft % 60, 10);
    var time = (minutes < 10 ? '0' + minutes : minutes) + ':' + (seconds < 10 ? '0' + seconds : seconds);

    should work if you stay under the hour, easy to change ofc

    It worked, Thanks kvanbiesen..

    I seen another problem, after completion of quiz it shows the wrong Time at quiz statistics. I think it stores the server time into database and we need to show the actual time when user attend the quiz.

    I am not sure if it’s related to above thread, just wanted to know if any solution for this issue.

    Thanks…

    Hi,

    When I replaced the lines of the .js file for time settings as guided by you, the quiz does not trigger exit after the time is up. I can still fill up the answer if the set time is up. Please let me know what I can do to get fix this.

    Thanks

    Vikas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Timer not working correctly’ is closed to new replies.