Title: Timer not working correctly
Last modified: August 21, 2016

---

# Timer not working correctly

 *  [vinay9599](https://wordpress.org/support/users/vinay9599/)
 * (@vinay9599)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/timer-not-working-correctly/)
 * Hi,
 * I have two issues when i use this [ssquiz id=2 qrandom arandom name timer=210]:-
   
   a) Timer not working – I selected 210 for 210 seconds which means 3 mins 30 secs
   when i start the quiz it shows 3:30 on top. But when the quiz starts it shows
   33:30. Even on your website it displays the same >> [http://100vadim.com/ssquiz/showcase1/](http://100vadim.com/ssquiz/showcase1/)
 * b) arandom does not randomise answers.
 * please help me as i had to later remove the timer
 * [http://wordpress.org/extend/plugins/ssquiz/](http://wordpress.org/extend/plugins/ssquiz/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [ssvadim](https://wordpress.org/support/users/ssvadim/)
 * (@ssvadim)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/timer-not-working-correctly/#post-3882287)
 * Hello,
 * It works on my side.
    In which browser did you tried timer?
 *  Thread Starter [vinay9599](https://wordpress.org/support/users/vinay9599/)
 * (@vinay9599)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/timer-not-working-correctly/#post-3882291)
 * i tried it on chrome as well on firefox
 *  [sanketzalak](https://wordpress.org/support/users/sanketzalak/)
 * (@sanketzalak)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/timer-not-working-correctly/#post-3882340)
 * [@ssvadim](https://wordpress.org/support/users/ssvadim/)
 * I also face same problem… Please Fix this Bug ASAP.
 * I have Tasted on Chrome, Firefox, IE9 & 10.
 *  [kvanbiesen](https://wordpress.org/support/users/kvanbiesen/)
 * (@kvanbiesen)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/timer-not-working-correctly/#post-3882343)
 * 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
 *  [Nikhil Ranpara](https://wordpress.org/support/users/nikhilranpara-1/)
 * (@nikhilranpara-1)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/timer-not-working-correctly/#post-3882350)
 * 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…
 *  [vikaskukreja](https://wordpress.org/support/users/vikaskukreja/)
 * (@vikaskukreja)
 * [12 years ago](https://wordpress.org/support/topic/timer-not-working-correctly/#post-3882360)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/ssquiz_daf0f7.svg)
 * [SS Quiz](https://wordpress.org/plugins/ssquiz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ssquiz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ssquiz/)
 * [Active Topics](https://wordpress.org/support/plugin/ssquiz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ssquiz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ssquiz/reviews/)

 * 6 replies
 * 6 participants
 * Last reply from: [vikaskukreja](https://wordpress.org/support/users/vikaskukreja/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/timer-not-working-correctly/#post-3882360)
 * Status: not resolved