Jump to content

Carbon date issue


KiXX

Recommended Posts

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

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated