Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7943091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:10:06+00:00 2026-06-04T00:10:06+00:00

I am using Keith Woods countdown timer (http://keith-wood.name/countdown.html) with the serverSync function. This seems

  • 0

I am using Keith Woods countdown timer (http://keith-wood.name/countdown.html) with the serverSync function. This seems to work great in a single country however when I check the countdown from a different country it seems there is 15 hours ish difference.

So in Australia the countdown shows 1 day but in the US it shows 1 day 15 hours. I have implemented the server side code exactly as explained on the site but there is still the time difference. If I change my local clock it changes the countdown time but when hit refresh the countdown shows the correct amount of time so I know its getting the server time. However in the US there is still the time difference.

Any ideas why this could be if its reading the server time?

function serverTime() { 
  var time = null; 
  $.ajax({url: 'server-time.php?random=' + Math.floor(Math.random() * 1000000), 
       async: false,
       dataType: 'text', 
       success: function(text) { 
          time = new Date(text); 
       }, error: function(http, message, exc) { 
          time = new Date(); 
       }}); 
       return time; 
    }

    var launchDate = "";

    $(function () {
       launchDate = new Date(
           2012,
           5-1,
           22,
           11
       );
       $('#launchCountdown').countdown('destroy')
       $('#launchCountdown').countdown({
                until: launchDate,
                serverSync: serverTime,
                format: 'DHMS', 
                expiryText: '<p>It\'s all over</p>'
                //onTick: highlightLast5
            });
        });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:10:07+00:00Added an answer on June 4, 2026 at 12:10 am

    You have to deal with timezone issues yourself. Countdown will automatically apply these settings according to the docs:

    This date and time should take into account the server’s timezone and any difference between that time and the client’s is applied to the countdown when it is started or changed.

    So the client’s timezone is taken into account, as the script is loaded based on the client’s settings.

    Edit with more:

    Without knowing your exact code I can’t be sure, but you should be setting this to GMT and then offsetting to your server time once, rather than setting it to your server time which solves the problem of offsetting to each timezone automatically, which you don’t want. So use until:

    $(selector).countdown({ 
        until: new Date(2012, 8 - 1, 8)}); // add a date object with a timezone
    $(selector).countdown({ 
        // create the offset based on your server timezone (e.g Sydney)
        // this overrides servertime with a static value that you want
        until: $.countdown.UTCDate(+10, 2012, 1 - 1, 26),  timezone: +10}); 
    $(selector).countdown({until: '+1m -1d'}); // set it to one one day from now
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this jQuery countdown plugin: http://keith-wood.name/countdown.html I'm trying this to set the countdown
i am using a keith-wood jquery countdown timer plugin on my website ( http://keith-wood.name/countdown.html
i have one count down timer using http://keith-wood.name/countdown.html var austDay = new Date(); austDay
http://keith-wood.name/countdown.html I am using this jQuery plugin. $('#noDays').countdown({ until: enddate_final, format: 'HMS', compact: true,
I'm using jquery_countdown (http://keith-wood.name/countdown.html) to set a 60-minute timer. I know that I can
So I'm using http://keith-wood.name/countdown.html to do a countdown and am trying to figure out
I am using the jQuery datepicker( http://keith-wood.name/datepick.html ) and I would like to set
I am using the jQuery Datepicker( http://keith-wood.name/datepick.html ). I am trying to let the
I'm using the jQuery Datepicker ( http://keith-wood.name/datepick.html ) with custom date range. My problem
I'm using Keith Wood's jQuery datepicker http://keith-wood.name/datepick.html to make a calendar that the user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.