Here is my response.
The qusetion is, Do you want the time update to be real-time event or not.
Real-Time Event:
If you want the update to be real-time(Ie The Page will not refresh or reloads upon the event updates) then you better do it with nodejs and websocket. The most common websocket
is Socket.Io.
Not-Realtime Event
If its not gonna be real-time. You can then use php. You can write an update code in any of the page. You will then also write a code to query the time from the database. Embed the query codes on both pages so that each time the page reloads or refreshes, the time will be fetched from the database and it will work fine. Your best bet will be to combine php with ajax. Thanks You