Hello , if possible could some 1 help me fix this please
we run a company in london and wish for it to show open between 9am and 5PM and closed the rest of the hours , at the time of writing im in south wales gmt and its 04:42 and its currently showing online and so im not too sure whats wrong
thanks
date_default_timezone_set(‘Europe/London’);
echo (gmdate(“H”) > 09 && gmdate(“H”) < 17) ? “online” : “offline”;