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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:40:03+00:00 2026-05-14T14:40:03+00:00

We have a site that currently runs auctions at a certain time (picked by

  • 0

We have a site that currently runs auctions at a certain time (picked by user) this was all working fine, as when the server hit that time the auction would start. We then had to add timezones, dependant on where the user lived. This would then add or take away a certain amount of hours depending on the drop-down selected, we again had this working fine, but then everything when potty when the clocks went forward, took me a while to work out that daylight saving now managed to break everything.

I know there is a solution to this problem as many people must have come across it, but I can’t seem o work it out.

Our server currently runs UTC.

Any help on this would be great…

  • 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-14T14:40:03+00:00Added an answer on May 14, 2026 at 2:40 pm

    I’m not 100% on this, but I would say that provided your timezone database (part of your linux system) is up-to-date then you should be able to do this:

    <?php
    $currentTimezone = date_default_timezone_get();
    date_default_timezone_set($usersTimezone);
    echo date('j F Y G:i:s'); // Time shown in user's timezone, DST accounted for
    date_default_timezone_set($currentTimezone);
    ?>
    

    If you look through PHP’s date functions there are probably less twisty ways to do this. I’m just not very clued up on those functions 😉

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

Sidebar

Related Questions

I have a site that I am currently working on in ASP.NET 2.0 using
I currently have a download site for my school that is based in .net.
We have a intranet site that runs on Drupal. If an employee hits the
I currently have a site that uses the JQuery cycle plugin. The site uses
I have a new site that I am currently in the process of mapping
Currently, I have a Site.Master page for my MVC app that renders great when
I have a site that requires Windows Authentication the application obtains the credential from
I have a site that is using x509 client certificates (2 way SSL) to
I have a site that usually has news items at the top of the
I have a site that I've developed that makes decent use of Javascript, and

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.