Open Hours not working in many ways
This topic contains 14 replies, has 3 voices, and was last updated by WANDA 6 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 13, 2020 at 1:26 am #530065
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.
February 13, 2020 at 1:32 am #530066This reply has been marked as private.February 13, 2020 at 6:01 am #530086Hello,
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?
February 13, 2020 at 12:45 pm #530121Hi 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
February 14, 2020 at 2:36 am #530235Hi
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.
February 17, 2020 at 4:24 am #530709This reply has been marked as private.February 20, 2020 at 4:03 am #531328This reply has been marked as private.February 20, 2020 at 10:39 am #531385This reply has been marked as private.February 20, 2020 at 11:44 pm #531502This reply has been marked as private.February 21, 2020 at 11:26 am #531562This reply has been marked as private.March 5, 2020 at 11:18 pm #533885This reply has been marked as private.March 6, 2020 at 1:55 pm #534028Hi Darrell,
Thanks for providing FTP access. In what timezone your server is running?
Kiran
March 8, 2020 at 11:31 pm #534322Hi Kiran
I have checked the PHP settings and the server is using the Australia/Sydney timezone.
Wordpress is currently using the same timezone.
March 9, 2020 at 8:00 am #534349Hi 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,
KiranMarch 10, 2020 at 12:37 am #534633Hi Kiran
Thank you so much.
You have solve issue completely.
I hope you have a great day.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket