KiXX Posted March 22, 2017 Share Posted March 22, 2017 I have been following the documentation to add the Support Hours to the site. IT all works great except for it ignoring the time. It will show a different message at the weekend, but it's not changing at 5 o clock, the code is below: $now = Carbon::now(); $supportIsOpen = $now->isWeekday() && $now->hour >= 8 && $now->hour <= 17; Any help would be appreciated. http://docs.whmcs.com/Editing_Client_Area_Menus#Add_support_hours_and_a_custom_message_to_the_sidebar_on_the_submit_ticket_page 0 Quote Link to comment Share on other sites More sharing options...
Ron the Web Guy Posted June 22, 2020 Share Posted June 22, 2020 I did some research on this since I was having the same issue and I found that by putting in 'America/Vancouver' fixed it for me since I am on the West Coast USA $now = Carbon::now('America/Vancouver'); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.