Open Hours not working in many ways

This topic contains 14 replies, has 3 voices, and was last updated by  Wanda Dunnet 4 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #530065

    Wanda Dunnet
    Full Member
    Post count: 18

    Hi

    I have noticed today that Open Hours on businesses is appearing messed up in four different ways.

    1. It seems to showing the wrong day. It is currently Thursday here and the opening hours is saying that it’s Tuesday.

    2. The opening time is appearing with the wrong AM/PM ending. It seems to show the opposite that you choose. 10PM appearing as 10AM.

    3. The dropdown that appears when clicking on the Opening Hours has the wrong time next to each day. Shows Sunday with Monday’s hours, Monday with Tuesday’s hours, ect.

    4. Time zone seems off as well but is hard to test with these other issues. I have noticed that it seems to be adding 1 hour to opening hours but 2 hour to closing hours.

    #530066

    Wanda Dunnet
    Full Member
    Post count: 18
    This reply has been marked as private.
    #530086

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    Monday was set to 9PM to 7PM.

    The site timezone and then the offset in the listing appear correct.

    I will check with the developers about why Tuesday is being listed first.

    What is the timezone of the computer you are checking with?

    #530121

    Kiran
    Moderator
    Post count: 7069

    Hi Darrell,

    Your site is running with some old version of plugins. Please update those plugins so we can investigate more.

    Do you have any customization done for business hours or timepicker or time settings?

    Provide us FTP credentials in case we require to debug.

    Kiran

    #530235

    Wanda Dunnet
    Full Member
    Post count: 18

    Hi

    I have updated all the plugin and unfortunately all the same issues still exist.

    I changed Monday’s hours to a weird time as I was testing issue 2. When I changed Monday’s opening hours from 9AM to 9PM, the frontend changed from 10PM to 10AM.

    The timezone I’m doing all my testing is in Sydney time which currently on GMT+11.

    Thanks for any help, I will add some FTP credentials below as soon as I can.

    #530709

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #531328

    Wanda Dunnet
    Full Member
    Post count: 18
    This reply has been marked as private.
    #531385

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #531502

    Wanda Dunnet
    Full Member
    Post count: 18
    This reply has been marked as private.
    #531562

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #533885

    Wanda Dunnet
    Full Member
    Post count: 18
    This reply has been marked as private.
    #534028

    Kiran
    Moderator
    Post count: 7069

    Hi Darrell,

    Thanks for providing FTP access. In what timezone your server is running?

    Kiran

    #534322

    Wanda Dunnet
    Full Member
    Post count: 18

    Hi Kiran

    I have checked the PHP settings and the server is using the Australia/Sydney timezone.

    Wordpress is currently using the same timezone.

    #534349

    Kiran
    Moderator
    Post count: 7069

    Hi Darrell,

    After doing some debugging found that WordPress default date timezone was overwritten from /wp-content/themes/CURRENT-CHILD-THEME/header.php file.

    Changing PHP default timezone after WordPress loading interferes with correct calculations of dates and times.

    I have fixed and used wp_date() function to show date in current timezone.

    Thanks,
    Kiran

    #534633

    Wanda Dunnet
    Full Member
    Post count: 18

    Hi Kiran

    Thank you so much.

    You have solve issue completely.

    I hope you have a great day.

Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket