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 8973353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:25:36+00:00 2026-06-15T18:25:36+00:00

I have three different pages using the same code to get the time for

  • 0

I have three different pages using the same code to get the time for a countdown clock. The clock counts down to midnight.

The second and third pages are showing the same time counting down, but the homepage is showing a different time. It’s all the same code and I included this PHP files on each of the pages:

<script>
jQuery(document).ready(function() {
    $('#countdown_dashboard').countDown({
        serverDate: {
            'day':      <?php echo date("j"); ?>,
            'month':    <?php echo date("n"); ?>,
            'year':     <?php echo date("Y"); ?>,
            'hour':     24,
            'min':      0,
            'sec':      0,
            'serverDay':    <?php echo date("j"); ?>,
            'serverMonth':  <?php echo date("n"); ?>,
            'serverYear':   <?php echo date("Y"); ?>,
            'serverHour':   <?php echo date("G"); ?>,
            'serverMin':    <?php echo date("i"); ?>,
            'serverSec':    <?php echo date("s"); ?>
        },
        omitWeeks: true
    });
});
</script>

What do I need to change to make the homepage timer match up with the others?

  • 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-15T18:25:38+00:00Added an answer on June 15, 2026 at 6:25 pm

    It looks like the homepage is providing a time that is +4 hours off from the other two links you provided. This would indicate to me that the homepage script is using a different timezone setting than the other two links.

    PHP has an internal timezone setting called date.timezone that is affected by php.ini and can be changed at run-time with the date_default_timezone_set() function. Most of PHP’s date/time functions like the one you’re using date, are affected by this timezone setting.

    You can add a call to phpinfo() in each of those scripts, and it will output all of the loaded configuration directives for those scripts and that can help you figure out which timezone is currently being used for each one. Note that if the timezone is left blank different versions of PHP behave differently. Older versions of PHP (pre PHP 5.4) used to try and guess your system’s timezone setting, whereas in PHP 5.4+ it will just default to UTC.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm playing with a GWT/GAE project which will have three different pages, although it
Lets say there are two pages with two different html elements which have the
I have three different List collections. How can I show them in one ListBox
I have three different configurations on my project, all three do not require all
I have three different development machines. Do I need three different iPhone Developer Program
If I have three different tables like this table_1 Field 1: victories Field 2:
My problem is that I have three different stock sizes for each product that
I have developed three different versions(as different projects) of an app(large,normal,small). How can I
I have built three different cells in my storyboard and hooked all the outlets
I have three UILabel with different font and I want to put then on

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.