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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:50:17+00:00 2026-05-26T07:50:17+00:00

That’s basically it, I need the server local time instead of GMT, so I

  • 0

That’s basically it, I need the server local time instead of GMT, so I need the offset (number of seconds) to add to what time() returns.

I also need this to work in any version of PHP 5, since I don’t know if I’ll have the latest version available.

  • 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-26T07:50:18+00:00Added an answer on May 26, 2026 at 7:50 am

    You could just use date_default_timezone_set('...'); at the top of your page. (Where ... is your time zone)

    This will make all date() usage be set on that time zone.
    For instance if you use date("H:i d-M-Y") it will show the time showed by Windows on your computer; if you had set that time zone to your local time zone.

    See PHP Manual for reference.

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

Sidebar

Related Questions

That's pretty much it. I need to read a server controls event, which will
That's basically the question, is there a right way to implement operator<< ? Reading
That's a really awkward title :) I need to write a report that generates
That's about all I need to ask. Checked the PHP manual and saw a
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That is I need to get rid of the sess* files that php is
That's basically it. I have a demo up here . I have been going
I need a function that will clean a strings' special characters. I do NOT
That is, if I use the current time as an index into the array:
That's about all that I need to ask I am dealing with a site

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.