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

  • SEARCH
  • Home
  • 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 6171485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:13:23+00:00 2026-05-23T23:13:23+00:00

What is likely to be going on when the time on the server is

  • 0

What is likely to be going on when the time on the server is out by 12 hours? I am working on a site for a friend, and noticed that although the server is in our timezone, it is 12 hours behind us when writing records to the DB. So I did the checks like so:

<?php echo(gmstrftime("It is %a on %b %d, %Y, %X time zone: %Z",time()));
    phpinfo();
?>

result:

It is Thu on Jul 21, 2011, 04:46:46 time zone: GMT
...

date

date/time support enabled

"Olson" Timezone Database Version 2010.15

Timezone Database internal

Default timezone Pacific/Auckland


Directive Local Value Master Value

date.default_latitude 31.7667 31.7667

date.default_longitude 35.2333  35.2333

date.sunrise_zenit 90.583333 90.583333

date.sunset_zenith 90.583333 90.583333

date.timezone Pacific/Auckland Pacific/Auckland

Ask you can see, PHP reports 4:46 am. It’s really 4:46pm here. It reports GMT as the Timezone, but the PHPinfo reports Pacific/Auckland as the Timezone (GMT+12).

I asked the webhost what was going on. They weren’t sure, as the system’s time was correct.
And there are no other php.ini files being introduced.

Ideas?

  • 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-05-23T23:13:24+00:00Added an answer on May 23, 2026 at 11:13 pm

    gmstrftime reports GMT time, which looks correct to me.
    You need strftime to get your local (AKL) time.
    php.ini probably has its timezone set to AKL, which again is correct.
    The correct question is “what does strftime (or any other PHP current time function) report?”

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

Sidebar

Related Questions

I'm working on a web application that is most likely going to end up
We are working on adding some Facebook Connect functionality to our site. Part of
So likely not the best title but that's what I think is going on.
When users log into our site we retrieve an object from our database that
This is likely going to be an easy answer and I'm just missing something,
With LINQ to SQL most likely going to not get as much active development
I am likely to be working on a few projects soon where I will
Looking ahead in the likely event we will build a server farm rather than
Okay, so we have a utility here in-house that generates business-model classes from our
I have a thread that I fire off every time the user scans a

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.