The problem is that the synchronised time ignores the timezone on the server, so someone in another time zone will actually see a different countdown altogether (and may even see 0 hours, 0 minutes, 0 seconds on a live auction because their local time is in advance of the end of the auction) !!
To overcome this, in
themes\default\header.php
Find:
Code: Select all
var countdownSync = <?=$siteOptions['countdownSync'] ?>;
Code: Select all
var countdownSync = <?=$siteOptions['countdownSync'] ?>;
var serverTimeZone = <?=explode(':',date('P'))[0]?>;
Find:
Code: Select all
// Countdown
$('span.countdown').each( function() {
var tim = $(this);
var dateField = tim.find('input').val();
//dateField can be: just seconds before end (just numbers), or ending in js Date format
var untilVal = /^\d+$/.test(dateField) ? dateField : eval("new Date("+dateField+")");
//countdown admits both seconds delta and date as "until" field
var params = {until:untilVal, expiryUrl: window.location.href};
//Add server time synchronization
params.serverSync = countdownSync ? serverTime : null;
//Big or small clock format
params.compact = tim.hasClass('smallClock');
tim.countdown(params);
});
Code: Select all
// Countdown
$('span.countdown').each( function() {
var tim = $(this);
var dateField = tim.find('input').val();
//dateField can be: just seconds before end (just numbers), or ending in js Date format
var untilVal = /^\d+$/.test(dateField) ? dateField : eval("new Date("+dateField+")");
//countdown admits both seconds delta and date as "until" field
var params = {until:untilVal, expiryUrl: window.location.href};
//Add server time synchronization
params.serverSync = countdownSync ? serverTime : null;
params.timezone = serverTimeZone;
//Big or small clock format
params.compact = tim.hasClass('smallClock');
tim.countdown(params);
});