Index: openacs-4/packages/xowf/tcl/test-item-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/tcl/test-item-procs.tcl,v diff -u -r1.7.2.110 -r1.7.2.111 --- openacs-4/packages/xowf/tcl/test-item-procs.tcl 9 Feb 2021 14:34:06 -0000 1.7.2.110 +++ openacs-4/packages/xowf/tcl/test-item-procs.tcl 26 Feb 2021 10:49:20 -0000 1.7.2.111 @@ -2547,7 +2547,8 @@ setInterval(function () { var current_date = new Date().getTime(); - var seconds_left = (countdown_target_date - current_date) / 1000; + var absolute_seconds_left = (countdown_target_date - current_date) / 1000; + var seconds_left = absolute_seconds_left var HTML = ''; countdown_days = parseInt(seconds_left / 86400); @@ -2559,7 +2560,7 @@ var alarmseconds = countdown.parentNode.dataset.alarmseconds; if (typeof alarmseconds !== 'undefined') { - var full_seconds = Math.trunc(seconds_left); + var full_seconds = Math.trunc(absolute_seconds_left); // for testing purposes, use: (full_seconds % 5 == 0) if (alarmseconds.includes(full_seconds)) { beep(200);