Home » Php » Returned same time value in header php on refleshing in wordpress

Returned same time value in header php on refleshing in wordpress

Posted by: admin February 25, 2020 Leave a comment

Questions:

I show a time data in header.php, for example; 18:11:00, but when I refresh the page, the same data remains. When I open a different page, the clock data changes, for example, 18:12:15. However, the data is not updated when I open these pages again.

the code;

$date = date('Y-m-d H:i:s');
echo $date;
How to&Answers: